summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-23 16:17:04 -0300
committerRenato Botelho <renato@netgate.com>2016-05-23 16:17:04 -0300
commit3edb445e21d25bd0c3db5bd719c64e7335f62f67 (patch)
tree8403bded8e60d1ae90eaad87bda391d4bda4e9c0 /build.sh
parentddf56629e3c0f8e2e11ba64e23169020408966ad (diff)
downloadpfsense-3edb445e21d25bd0c3db5bd719c64e7335f62f67.zip
pfsense-3edb445e21d25bd0c3db5bd719c64e7335f62f67.tar.gz
Define default image type for snapshots later
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 548ecee..69f461f 100755
--- a/build.sh
+++ b/build.sh
@@ -138,7 +138,6 @@ while test "$1" != ""; do
;;
--snapshots)
export SNAPSHOTS=1
- IMAGETYPE=${1:-"all"}
;;
--poudriere-snapshots)
export POUDRIERE_SNAPSHOTS=1
@@ -337,6 +336,11 @@ if [ $# -gt 1 ]; then
echo
usage
fi
+
+if [ -n "${SNAPSHOTS}" -a -z "${IMAGETYPE}" ]; then
+ IMAGETYPE="all"
+fi
+
if [ -z "${IMAGETYPE}" ]; then
echo "ERROR: Need to specify image type to build."
echo
OpenPOWER on IntegriCloud