about summary refs log tree commit diff stats
path: root/clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'clean.sh')
-rwxr-xr-xclean.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/clean.sh b/clean.sh
index 39683ec..6b09e59 100755
--- a/clean.sh
+++ b/clean.sh
@@ -1,7 +1,15 @@
 #!/bin/sh
-set -eu
+set -e
 
-. ./tup.config
+# Check if another config is being used.
+if [ -z $TUP_CONFIG ];
+then
+	. ./tup.config
+else
+	. ./$TUP_CONFIG
+fi
+
+set -u
 
 echo "Cleaning Project..."
 set -x