diff options
author | Renato Botelho <renato@netgate.com> | 2016-05-23 16:17:04 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-05-23 16:17:18 -0300 |
commit | 6479980110f43f17177fcbf39cad8c4d0e9bd7b1 (patch) | |
tree | 33d33c665656ff78f3b2bfb0ccc99390674cc81f /build.sh | |
parent | 8238d674c1e0afed05be65376f000eb8c99041e4 (diff) | |
download | pfsense-6479980110f43f17177fcbf39cad8c4d0e9bd7b1.zip pfsense-6479980110f43f17177fcbf39cad8c4d0e9bd7b1.tar.gz |
Define default image type for snapshots later
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |