X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lib-src%2Finstallexe.sh;h=16981258bcbe21f2eb68a3d52b1e2ff82605209c;hb=788a3ab321646dd3cdfad9a9527b9c1a32140acc;hp=2c1849a1e8240597564fce459053b2c621976d50;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/lib-src/installexe.sh b/lib-src/installexe.sh index 2c1849a..1698125 100644 --- a/lib-src/installexe.sh +++ b/lib-src/installexe.sh @@ -1,14 +1,20 @@ -#!sh +#!bash install_prog=$1 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 "