X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Finstallexe.sh;fp=lib-src%2Finstallexe.sh;h=16981258bcbe21f2eb68a3d52b1e2ff82605209c;hb=0298dde5c47a900f2542bc7ec6c9dafc92ce3015;hp=d971b090b3dee096adf46ca9c869e876b7f39f0a;hpb=ee38d21b330f5001b47a577cefb5ba7b82a3b7d3;p=chise%2Fxemacs-chise.git diff --git a/lib-src/installexe.sh b/lib-src/installexe.sh index d971b09..1698125 100644 --- a/lib-src/installexe.sh +++ b/lib-src/installexe.sh @@ -5,11 +5,16 @@ shift tstr="" -while [ $# -gt 0 ] +while [[ $# -gt 0 ]] do - if [ -f $1.exe ] + if [[ -f $1.exe ]] then - tstr="$tstr$1.exe $2.exe" + if [[ "$2" == *.exe ]] + then + tstr="$tstr$1 $2" + else + tstr="$tstr$1.exe $2.exe" + fi shift 2 else tstr="$tstr$1 "