Skip to content

Commit

Permalink
bootstrap: snapshot mode -z instead of -r snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 16, 2021
1 parent a200a50 commit 4a6db5d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/bootstrap/opnsense-bootstrap.sh.in
Expand Up @@ -41,7 +41,7 @@ DO_QUICK=
DO_VERBOSE=
DO_YES=

while getopts a:bfin:qr:t:vVy OPT; do
while getopts a:bfin:qr:t:vVyz OPT; do
case ${OPT} in
a)
DO_ABI="-a ${OPTARG}"
Expand Down Expand Up @@ -77,6 +77,9 @@ while getopts a:bfin:qr:t:vVy OPT; do
y)
DO_YES="-y"
;;
z)
DO_SNAPSHOT="-z"
;;
*)
echo "Usage: man ${0##*/}" >&2
exit 1
Expand Down Expand Up @@ -193,8 +196,8 @@ fi

SUBFILE="stable/${RELEASE}"
SUBDIR="stable-${RELEASE}"
if [ "${RELEASE}" = "snapshot" ]; then
RELEASE="snapshots"

if [ -n "${DO_SNAPSHOT}" ]; then
SUBDIR="master"
SUBFILE="master"
fi
Expand Down

0 comments on commit 4a6db5d

Please sign in to comment.