Permalink
Browse files

Improve variable unsets at end of scripts

  • Loading branch information...
mjsteinbaugh committed Dec 15, 2017
1 parent 719eb20 commit 0f16a5c726c925a61373b1ffeabfd0230337ecf5
Showing with 2 additions and 3 deletions.
  1. +2 −3 seqcloud.sh
View
@@ -20,15 +20,14 @@ if [[ "$SEQCLOUD_CONSOLE" != false ]]; then
-type f -name "*.sh" ! -name ".*" | sort); do
. "$file"
done
unset file
unset -v file
fi
if [[ "$SEQCLOUD_PATH" != false ]]; then
for file in $(find "$SEQCLOUD_DIR"/profile/path \
-type f -name "*.sh" ! -name ".*" | sort); do
. "$file"
done
unset file
unset file
unset -v file
fi
# Pass positional parameters to scripts in the `bash` subdirectory

0 comments on commit 0f16a5c

Please sign in to comment.