Skip to content

Commit

Permalink
Add support for filenames with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dbermond committed Dec 25, 2017
1 parent 0f90106 commit d1a3b34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion image/pingo
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ do
then
# map path for wine using default WINEPREFIX
fullpath="$(printf '%s' "$(cd "$(dirname "$arg")" || cd_error "$(dirname "$arg")"; pwd)/$(basename "$arg")")"
imgfiles="${imgfiles} ${HOME}"/.wine/dosdevices/z\:"$fullpath"
imgfiles="${imgfiles} ${HOME}/.wine/dosdevices/z:${fullpath}
"
else
# if not a valid file, just store it (should be an option)
pingo_opts="${pingo_opts} ${arg}"
Expand All @@ -75,4 +76,6 @@ done

# execute pingo through wine
cd "$pingo_dir" || cd_error "$pingo_dir"
IFS='
'
wine ./"$pingo_file" $pingo_opts $imgfiles
5 changes: 4 additions & 1 deletion image/truepng
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ do
then
# map path for wine using default WINEPREFIX
fullpath="$(printf '%s' "$(cd "$(dirname "$arg")" || cd_error "$(dirname "$arg")"; pwd)/$(basename "$arg")")"
pngfiles="${pngfiles} ${HOME}"/.wine/dosdevices/z\:"$fullpath"
pngfiles="${pngfiles} ${HOME}/.wine/dosdevices/z:${fullpath}
"
else
# if not a valid file, just store it (should be an option)
truepng_opts="${truepng_opts} ${arg}"
Expand All @@ -75,4 +76,6 @@ done

# execute TruePNG through wine
cd "$truepng_dir" || cd_error "$truepng_dir"
IFS='
'
wine ./"$truepng_file" $truepng_opts $pngfiles

0 comments on commit d1a3b34

Please sign in to comment.