wok diff linux64-module-headers/receipt @ rev 18730
Quote root dir in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 20 15:13:45 2015 +0100 (2015-12-20) |
parents | 08cf996a2307 |
children | 30b3a3fb9ff0 |
line diff
1.1 --- a/linux64-module-headers/receipt Mon Aug 17 11:03:13 2015 +0200 1.2 +++ b/linux64-module-headers/receipt Sun Dec 20 15:13:45 2015 +0100 1.3 @@ -20,13 +20,13 @@ 1.4 } 1.5 1.6 pre_remove() { 1.7 - if [ -e $1/usr/src/linux ]; then 1.8 - rm -rf $1/usr/src/linux 1.9 + if [ -e "$1/usr/src/linux" ]; then 1.10 + rm -rf "$1/usr/src/linux" 1.11 fi 1.12 } 1.13 1.14 post_install() { 1.15 # Added soft link to make it easier to point to kernel folder 1.16 - [ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux 1.17 - ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux 1.18 + [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux" 1.19 + ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux" 1.20 }