Skip to content
Snippets Groups Projects
Unverified Commit 85c66b3b authored by Jan-Tarek Butt's avatar Jan-Tarek Butt Committed by Matthias Schiffer
Browse files

gluon-autoupdater: double quote $1 to prevent globbing and word splitting

parent 82ef6599
No related branches found
No related tags found
No related merge requests found
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
stop() { stop() {
if [ -x /etc/init.d/$1 ]; then if [ -x /etc/init.d/"$1" ]; then
echo "Stopping $1..." echo "Stopping $1..."
/etc/init.d/$1 stop /etc/init.d/"$1" stop
fi fi
} }
start_enabled() { start_enabled() {
if [ -x /etc/init.d/$1 ] && /etc/init.d/$1 enabled; then if [ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" enabled; then
echo "Starting $1..." echo "Starting $1..."
/etc/init.d/$1 start /etc/init.d/"$1" start
fi fi
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment