diff --git a/libretro-install-win32.sh b/libretro-install-win32.sh index d4d3525c..99be258a 100755 --- a/libretro-install-win32.sh +++ b/libretro-install-win32.sh @@ -2,10 +2,10 @@ ARCH_EXT="$1" -SCRIPT=$(readlink -f $0) -BASE_DIR=$(dirname $SCRIPT) -RARCH_DIR=$BASE_DIR/dist -RARCH_DIST_DIR=$RARCH_DIR/windows +SCRIPT=$(readlink -f "$0") +BASE_DIR=$(dirname "$SCRIPT") +RARCH_DIR="$BASE_DIR/dist" +RARCH_DIST_DIR="$RARCH_DIR/windows" cd "$RARCH_DIST_DIR" for file in *.dll @@ -15,5 +15,6 @@ do FILENAME="`echo $file | sed -e $REGEX_MV`" mv -v "$file" "$FILENAME" zip "`echo $file | sed -e $REGEX`" "$FILENAME" + rm -f "$FILENAME" done