mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
fix some error prone stuff, also I goofed the short circuit... oops
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
FILE="$1"
|
||||
NAME="$(basename "$FILE")"
|
||||
@@ -6,7 +7,7 @@ WAVDIR="${NAME%%.*}"
|
||||
|
||||
if [ "${NAME##*.}" = "vgz" ]; then
|
||||
cp "$FILE" "temp.vgm.gz"
|
||||
gzip -d "temp.vgm.gz"
|
||||
gzip -fd "temp.vgm.gz"
|
||||
FILE="temp.vgm"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user