Module: kamailio
Branch: master
Commit: 18b23187dd89e3b36c0dd95d4796484bef3d2e62
URL:
https://github.com/kamailio/kamailio/commit/18b23187dd89e3b36c0dd95d4796484…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-06T13:48:42+02:00
pkg/kamailio/scripts: wrap param around quotes to avoid invalid syntax on empty
---
Modified: pkg/kamailio/scripts/create-src-rpm.sh
Modified: pkg/kamailio/scripts/git-archive-all.sh
---
Diff:
https://github.com/kamailio/kamailio/commit/18b23187dd89e3b36c0dd95d4796484…
Patch:
https://github.com/kamailio/kamailio/commit/18b23187dd89e3b36c0dd95d4796484…
---
diff --git a/pkg/kamailio/scripts/create-src-rpm.sh
b/pkg/kamailio/scripts/create-src-rpm.sh
index ebe792a22bb..febe3b118fb 100755
--- a/pkg/kamailio/scripts/create-src-rpm.sh
+++ b/pkg/kamailio/scripts/create-src-rpm.sh
@@ -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
diff --git a/pkg/kamailio/scripts/git-archive-all.sh
b/pkg/kamailio/scripts/git-archive-all.sh
index 4c85ca83cc4..d0ca6338d71 100755
--- a/pkg/kamailio/scripts/git-archive-all.sh
+++ b/pkg/kamailio/scripts/git-archive-all.sh
@@ -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