* be more fault tolerant in the unison wrapper

svn path=/nixpkgs/trunk/; revision=9114
This commit is contained in:
Andres Löh 2007-08-13 17:08:14 +00:00
parent aae4a8db7a
commit 86874956a5

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
postInstall = [
"for i in $(cd $out/bin && ls); do"
" mv $out/bin/$i $out/bin/.orig-$i;"
" echo \"#! $SHELL -e\" > $out/bin/$i;"
" echo \"#! $SHELL\" > $out/bin/$i;"
" echo \"$xset/bin/xset q | grep -q \\\"$fontschumachermisc\\\" || $xset/bin/xset +fp \\\"$fontschumachermisc/lib/X11/fonts/misc\\\"\" >> $out/bin/$i;"
" echo \"exec \\\"$out/bin/.orig-$i\\\" \\\"\\\$@\\\"\" >> $out/bin/$i;"
" chmod +x $out/bin/$i;"