summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 0f36071..955a6e4 100755
--- a/build.sh
+++ b/build.sh
@@ -127,6 +127,16 @@ if [ -f config ]; then
source config
fi
+while getopts "c:" flag
+do
+ case "$flag" in
+ c)
+ EXTRA_CONFIG="$OPTARG"
+ source "$EXTRA_CONFIG"
+ ;;
+ esac
+done
+
if [ -z "${IMG_NAME}" ]; then
echo "IMG_NAME not set" 1>&2
exit 1