aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-07-25 14:04:43 +0200
committerOlav Vitters <olav@vitters.nl>2020-07-25 14:04:43 +0200
commit0a7281a5ebcf386df794334d9980b5febcb8ae49 (patch)
tree4b8abbd20e461cd139e0fb24642f3f49d479bb20
parentccc6227c00c9d5f6b724fabc2f1261976ab1ebc9 (diff)
downloadrpm-helper-0a7281a5ebcf386df794334d9980b5febcb8ae49.tar
rpm-helper-0a7281a5ebcf386df794334d9980b5febcb8ae49.tar.gz
rpm-helper-0a7281a5ebcf386df794334d9980b5febcb8ae49.tar.bz2
rpm-helper-0a7281a5ebcf386df794334d9980b5febcb8ae49.tar.xz
rpm-helper-0a7281a5ebcf386df794334d9980b5febcb8ae49.zip
del-webapp: ShellCheck: Double quote to prevent globbing and word splitting
-rwxr-xr-xdel-webapp2
1 files changed, 1 insertions, 1 deletions
diff --git a/del-webapp b/del-webapp
index ec407a8..c51ed5e 100755
--- a/del-webapp
+++ b/del-webapp
@@ -8,7 +8,7 @@ fi
pkg=$1 # name of the package
num=$2 # number of packages installed
-if [ $num = 0 ]; then
+if [ "$num" = 0 ]; then
# in simultaneous removal scenario, web server may
# already have been removed
if [ -f /etc/init.d/httpd ]; then