commit 60e443116a9448df49c8f032329c1355e97df7a5
parent dd3787cb57cd8a1d129865cd83626400cfa00ddb
Author: khushboo <khushboo@noreply.localhost>
Date: Wed, 15 Mar 2023 12:44:24 +0000
Make sure binloc exists (!66)
```jayporeci
╔ 🟢 : JayporeCI [sha 2f748d32c8]
┏━ build-and-test
┃
┃ 🟢 : JciEnv [3131cc68] 1:16
┃ 🟢 : Jci [2ce056ed] 0:22 ❮-- ['JciEnv']
┃ 🟢 : black [46f7a048] 0: 0 ❮-- ['JciEnv']
┃ 🟢 : install-test [ab0e65ce] 0: 0 ❮-- ['JciEnv']
┃ 🟢 : pylint [a93097c1] 0:10 ❮-- ['JciEnv']
┃ 🟢 : pytest [f6c5b5ed] 0:31 Cov: 91% ❮-- ['JciEnv']
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```
Co-authored-by: demo <demo@example.com>
Reviewed-on: https://gitea.midpathsoftware.com/midpath/jaypore_ci/pulls/66
Co-authored-by: khushboo <khushboo@noreply.localhost>
Co-committed-by: khushboo <khushboo@noreply.localhost>
Diffstat:
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/setup.sh b/setup.sh
@@ -2,6 +2,7 @@ set -o errexit
set -o nounset
set -o pipefail
+RUNNING_IN_CI="${RUNNING_IN_CI:-no}"
ASSUME_YES="no"
while getopts ":y" opt; do
case $opt in
@@ -10,7 +11,9 @@ while getopts ":y" opt; do
;;
esac
done
-echo "ASSUME YES: $ASSUME_YES"
+
+echo "RUNNING_IN_CI : $RUNNING_IN_CI"
+echo "ASSUME_YES : $ASSUME_YES"
should_continue (){
if [[ "$ASSUME_YES" = "yes" ]]
@@ -85,10 +88,13 @@ EOF
if should_continue
then
echo "Downloading age/ binaries"
- getfile /bin/age $HOME/.local/bin/age &
- getfile /bin/age-keygen $HOME/.local/bin/age-keygen &
- getfile /bin/sops $HOME/.local/bin/sops &
+ BINLOC=$HOME/.local/bin
+ mkdir -p $BINLOC &> /dev/null
+ getfile /bin/age $BINLOC/age &
+ getfile /bin/age-keygen $BINLOC/age-keygen &
+ getfile /bin/sops $BINLOC/sops &
wait
+ chmod u+x $BINLOC/age $BINLOC/age-keygen $BINLOC/sops
fi
echo "Downloading edit/set env scripts"
getfile /bin/edit_env.sh secrets/bin/edit_env.sh &