shell: sh compatibility

This commit is contained in:
PowerUser64 2022-08-21 20:57:19 -07:00
parent 8c3850af06
commit fa06fe9866

View file

@ -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