use CHROOT_SH instead of CHROOT_*
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 30 Jun 2005 06:11:35 +0000 (06:11 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 30 Jun 2005 06:11:35 +0000 (06:11 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2105 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/pkgmgmt

index 3cf380f..7f44aae 100755 (executable)
@@ -101,7 +101,7 @@ function _hashAuto()
        $_SED -e "s|^\([^$hash].*@autogenerated@\)|$hash$hash\1|" >$tmp
 
     $_CAT $tmp | $_EXEC_CD "$dir" "$(which cmp)" -s - "$file" || \
-       $_CHROOT_CAT -o "$1" <$tmp
+       $_CHROOT_SH truncate "$1" <$tmp
 
     $_RM -f $tmp
 }