summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 5d5c4d6..e1c1f32 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -53,10 +53,10 @@ uname -a
# setup exit banner message
trap EXIT_BANNER 0
-# Dump environment variables
-echo ===Dumping environment variables===
+# Dump environment variables before option parsing
+echo ===Dumping environment variables before option parsing ===
printenv | sort
-echo ===Done Dumping environment variables===
+echo ===Done Dumping environment variables before option parsing ===
# snapshots release directory. Default relative to $BASEDIR.
ReleaseDir_default=release_dir
@@ -222,6 +222,11 @@ while [ $# -gt 0 ] ; do
shift
done
+# Dump environment variables after option parsing
+echo ===Dumping environment variables after option parsing ===
+printenv | sort
+echo ===Done Dumping environment variables after option parsing ===
+
if [ "$cmd" = help ]; then
set -
cat <<EOF