Skip to content

Commit

Permalink
Merge pull request #475 from cedwards/jls_patch
Browse files Browse the repository at this point in the history
change new PKG option from -P to -H
  • Loading branch information
cedwards authored Dec 23, 2021
2 parents b7914ba + 570c80b commit 7558fd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion usr/local/bin/bastille
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st
JAILS="${JAILS} ${_jail}"
fi
done
elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-P' ] || [ "${TARGET}" = '--pkg' ]; then
elif [ "${CMD}" = "pkg" ] && [ "${TARGET}" = '-H' ] || [ "${TARGET}" = '--host' ]; then
TARGET="${1}"
USE_HOST_PKG=1
JAILS="${TARGET}"
Expand Down Expand Up @@ -191,6 +191,7 @@ clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|st
;;
esac
fi
export USE_HOST_PKG
export TARGET
export JAILS
fi
Expand Down
2 changes: 1 addition & 1 deletion usr/local/share/bastille/pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
. /usr/local/share/bastille/common.sh

usage() {
error_exit "Usage: bastille pkg [-P|--pkg] TARGET command [args]"
error_exit "Usage: bastille pkg [-H|--host] TARGET command [args]"
}

# Handle special-case commands first.
Expand Down

0 comments on commit 7558fd4

Please sign in to comment.