mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Expand usage synopsis
'source' is actually a "bashism" and the POSIX-way of sourcing a file uses the single dot (which is arguably less readable). Both yield the same result, and since the script may now also be sourced from within the hacking directory, this commit expands the usage synopsis accordingly. Signed-off-by: martin f. krafft <madduck@madduck.net> Conflicts: hacking/env-setup
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
# usage: source ./hacking/env-setup [-q]
|
||||
# usage: source env-setup [-q]
|
||||
# source hacking/env-setup [-q]
|
||||
# . ./env-setup [-q]
|
||||
# . ./hacking/env-setup [q]
|
||||
# modifies environment for running Ansible from checkout
|
||||
|
||||
# When run using source as directed, $0 gets set to bash, so we must use $BASH_SOURCE
|
||||
|
||||
Reference in New Issue
Block a user