Browse Source

chg: dev: trap should not be set up if only sourcing the file.

test
Valentin Lab 6 years ago
parent
commit
5e8c1246ba
  1. 6
      bin/compose

6
bin/compose

@ -117,7 +117,6 @@ clean_cache() {
} }
trap_add "EXIT" clean_cache
usage="$exname SERVICE"' usage="$exname SERVICE"'
@ -2623,8 +2622,13 @@ cached_wget() {
} }
export -f cached_wget export -f cached_wget
[ "$SOURCED" ] && return 0 [ "$SOURCED" ] && return 0
trap_add "EXIT" clean_cache
# if [[ "$UID" != 0 ]]; then # if [[ "$UID" != 0 ]]; then
# die "'$exname' requires root permissions (for now). Please run as root." # die "'$exname' requires root permissions (for now). Please run as root."
# fi # fi

Loading…
Cancel
Save