summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bin2png.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bin2png.sh b/scripts/bin2png.sh
index 090f31f..6422ee5 100755
--- a/scripts/bin2png.sh
+++ b/scripts/bin2png.sh
@@ -4,8 +4,8 @@ FILE=${1:-.}
convert_image() {
local file=$1
- local pnm=${file/%bin/pnm}
- local png=${file/%bin/png}
+ local pnm=${file%bin}pnm
+ local png=${file%bin}png
local format=$(echo $file | sed -e 's|.*-\([[:alnum:]]*\)-\([0-9]*x[0-9]*\).*.bin|\1|' | tr '[:lower:]' '[:upper:]')
local size=$(echo $file | sed -e 's|.*-\([[:alnum:]]*\)-\([0-9]*x[0-9]*\).*.bin|\2|')