mirror of
https://github.com/Bionus/imgbrd-grabber.git
synced 2025-01-08 11:47:33 +08:00
Properly quote optional parameters in build script (PR #2320)
This commit is contained in:
parent
cda5d11471
commit
b1a3e10856
4
build.sh
4
build.sh
@ -44,7 +44,9 @@ fi
|
||||
if ((!installed)); then exit 12; fi
|
||||
|
||||
# Build the project in the build directory
|
||||
./scripts/build.sh ${1:-gui translations} || exit 21
|
||||
if (($#)); then ./scripts/build.sh "$@" || exit 21
|
||||
else ./scripts/build.sh 'gui' 'translations' || exit 21
|
||||
fi
|
||||
|
||||
# Move the built binary to the release folder with its config
|
||||
./scripts/package.sh "release"
|
||||
|
@ -6,6 +6,6 @@ mkdir -p build
|
||||
declare -i ret=0
|
||||
pushd build
|
||||
cmake ../src || ret=1
|
||||
if ((!ret)); then make $@ -j$(($(nproc)+1)) || ret=2; fi
|
||||
if ((!ret)); then make "$@" -j$(($(nproc)+1)) || ret=2; fi
|
||||
popd
|
||||
exit "$ret"
|
||||
|
Loading…
Reference in New Issue
Block a user