summaryrefslogtreecommitdiffstats
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:25 -0300
commit14e2a0040cfcb3c81967844722dc124d4c095446 (patch)
tree08165d6a695a9bedf94ad72bc90896be3fbd1f14
parent288bd3103815573097b62e7caca8f73fbe120335 (diff)
downloadpfsense-14e2a0040cfcb3c81967844722dc124d4c095446.zip
pfsense-14e2a0040cfcb3c81967844722dc124d4c095446.tar.gz
Define default image type for snapshots later
-rwxr-xr-xbuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b78808f..989bc6c 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