mirror of
https://codeberg.org/scip/jaildk.git
synced 2025-12-16 20:21:05 +01:00
fix version conflict
This commit is contained in:
11
jaildk
11
jaildk
@@ -186,12 +186,12 @@ jaildk_build() {
|
||||
shift
|
||||
|
||||
base=''
|
||||
version=''
|
||||
VERSION=''
|
||||
|
||||
while getopts "b:v:" arg; do
|
||||
case $arg in
|
||||
b) base=${OPTARG};;
|
||||
v) version=${OPTARG};;
|
||||
v) VERSION=${OPTARG};;
|
||||
*) usage_build;;
|
||||
esac
|
||||
done
|
||||
@@ -204,10 +204,15 @@ jaildk_build() {
|
||||
mode=start
|
||||
fi
|
||||
|
||||
die_if_not_exist $jail $version
|
||||
die_if_not_exist $jail $VERSION
|
||||
|
||||
load-jail-config $jail
|
||||
|
||||
if test -n "$VERSION"; then
|
||||
# overridden with -v
|
||||
version=$VERSION
|
||||
fi
|
||||
|
||||
if test -n "$buildbase"; then
|
||||
base="$buildbase"
|
||||
elif test -z "$base"; then
|
||||
|
||||
Reference in New Issue
Block a user