From 2bac3ceabd6171e98ee6ac0becae2fdc792f2ba0 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Fri, 7 Jul 2017 15:04:46 +0200 Subject: [PATCH] How does one use bash? --- AppVeyor/make_installer.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/AppVeyor/make_installer.sh b/AppVeyor/make_installer.sh index 8cc3dac..9a57600 100644 --- a/AppVeyor/make_installer.sh +++ b/AppVeyor/make_installer.sh @@ -1,15 +1,12 @@ #!/usr/bin/env bash function addFile { + echo $1 cp $1 . echo "Source: \"$(basename $1)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss } function addAllFiles { - (find $1 -type f -iname "$2" || exit 1) | while read -r filename; do - cp $filename . - echo $filename - echo "Source: \"$(basename $filename)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss - done + for file in $1/$2; do addFile "$file"; done } ver=$(cat main.cpp | grep setApplicationVersion | sed "s/\\s*a.setApplicationVersion(\"//g" | sed "s/\");//g")