Skip to content

Commit

Permalink
pkg/kamailio/scripts: wrap param around quotes to avoid invalid synta…
Browse files Browse the repository at this point in the history
…x on empty
  • Loading branch information
miconda committed Oct 6, 2023
1 parent f16ec35 commit 18b2318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/kamailio/scripts/create-src-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ usage() {
# creates a src.rpm for mock
VER=$1
REL=$2
[[ -n $VER ]] || { echo "Version not specified"; usage; exit 1; }
[[ -n $REL ]] || { echo "Release not specified"; usage; exit 2; }
[[ -n "$VER" ]] || { echo "Version not specified"; usage; exit 1; }
[[ -n "$REL" ]] || { echo "Release not specified"; usage; exit 2; }

git submodule update --init

Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/scripts/git-archive-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ usage() {
echo Usage: pkg/kamailio/scripts/git-archive-all.sh kamailio-5.8.0 ../output/kamailio-5.8.0_src
}

if [ -z $1 ]; then
if [ -z "$1" ]; then
echo "You must specify a prefix name."
usage
exit 1
fi

if [ -z $2 ]; then
if [ -z "$2" ]; then
echo "You must specify a super-archive name."
usage
exit 1
Expand Down

0 comments on commit 18b2318

Please sign in to comment.