diff --git a/scripts/functions b/scripts/functions index 67f028d90..d15558b93 100644 --- a/scripts/functions +++ b/scripts/functions @@ -518,7 +518,7 @@ register_xdm() { # Create Package Database for gasgui install tool # create_package_db() { - rm -f $3.tmp + rm -f $3 $3.tmp for file in $( ls $1/descs/ ) ; do pkg="${file##*/}" # only include the package if a binary file is available @@ -554,7 +554,8 @@ create_package_db() { ) >> $3.tmp fi done - gzip -c $3.tmp > $3 ; rm -f $3.tmp + gzip -c $3.tmp > $3 + rm -f $3.tmp } # Add files to the 'badfiles' list