shell: sh compatibility
This commit is contained in:
parent
8c3850af06
commit
fa06fe9866
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
# [optional: operation (source, exec, command or nothing)] \
|
||||
careful_source() {
|
||||
if test "${4:--f}" "$1"; then
|
||||
${5:-source} "$1"
|
||||
${5:-.} "$1"
|
||||
else
|
||||
if test -n "${2+foo}"; then
|
||||
printf "%s\n" "$2" >&2
|
||||
|
|
Loading…
Add table
Reference in a new issue