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

This commit is contained in:
Jan-Tarek Butt 2016-09-24 16:33:01 +02:00 committed by Matthias Schiffer
parent 82ef6599f8
commit 85c66b3bf8
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -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
} }