wok diff zsh/receipt @ rev 11680
Up: stella to 3.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 18 08:13:30 2012 -0500 (2012-02-18) |
parents | 93efe993d312 |
children | 605079172258 |
line diff
1.1 --- a/zsh/receipt Wed Oct 26 20:10:43 2011 +0000 1.2 +++ b/zsh/receipt Sat Feb 18 08:13:30 2012 -0500 1.3 @@ -70,3 +70,16 @@ 1.4 fi 1.5 fi 1.6 } 1.7 + 1.8 +# Restore a valid sh link if needed. 1.9 +pre_remove() 1.10 +{ 1.11 + local root 1.12 + root=$1 1.13 + sh=`readlink $root/bin/sh` 1.14 + if [ ! "$sh" = "busybox" ]; then 1.15 + rm $root/bin/sh && 1.16 + ln -s /bin/busybox $root/bin/sh 1.17 + fi 1.18 +} 1.19 +