wok diff php-common/receipt @ rev 19580
linld: add -b switch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 24 19:16:59 2016 +0100 (2016-12-24) |
parents | 55f67249b264 |
children | 970c5ec9a60a |
line diff
1.1 --- a/php-common/receipt Tue Jun 03 01:07:29 2014 +0200 1.2 +++ b/php-common/receipt Sat Dec 24 19:16:59 2016 +0100 1.3 @@ -28,7 +28,7 @@ 1.4 # Backup existing php.ini 1.5 if [ -f "$1/etc/php.ini" ]; then 1.6 echo -n "Creating php.ini backup..." 1.7 - cp $1/etc/php.ini $1/etc/php.ini.bak 1.8 + cp "$1/etc/php.ini" "$1/etc/php.ini.bak" 1.9 status 1.10 fi 1.11 } 1.12 @@ -37,7 +37,7 @@ 1.13 # Restore original php.ini 1.14 if [ -f "$1/etc/php.ini.bak" ]; then 1.15 echo -n "Restoring php.ini backup..." 1.16 - mv -f $1/etc/php.ini.bak $1/etc/php.ini 1.17 + mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini" 1.18 status 1.19 fi 1.20 }