diff options
author | Julien Dessaux | 2022-09-07 23:50:20 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-09-07 23:50:20 +0200 |
commit | 22b1d1c1a4cfab3a43ac3dde1671382db7b2e500 (patch) | |
tree | 5e142c74f8c7b0320014a4080ac740b96becca4b /common | |
parent | Split the deploy script in distinct tasks (diff) | |
download | ev-scripts-22b1d1c1a4cfab3a43ac3dde1671382db7b2e500.tar.gz ev-scripts-22b1d1c1a4cfab3a43ac3dde1671382db7b2e500.tar.bz2 ev-scripts-22b1d1c1a4cfab3a43ac3dde1671382db7b2e500.zip |
Moved away from job parameters to command arguments
Diffstat (limited to 'common')
-rw-r--r-- | common/clean.sh | 3 | ||||
-rw-r--r-- | common/git-clone.sh | 5 | ||||
-rw-r--r-- | common/make.sh | 5 |
3 files changed, 5 insertions, 8 deletions
diff --git a/common/clean.sh b/common/clean.sh index 40ec605..1ce9e66 100644 --- a/common/clean.sh +++ b/common/clean.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -# Input environment: -# - NAME: a name for the script/tasks +NAME=$1 rm -rf "/tmp/${NAME}" diff --git a/common/git-clone.sh b/common/git-clone.sh index 1a1a89c..d502aca 100644 --- a/common/git-clone.sh +++ b/common/git-clone.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -# Input environment: -# - NAME: a name for the script/tasks -# - URL: the url of the repository to clone +NAME=$1 +URL=$2 WORKDIR="/tmp/${NAME}" diff --git a/common/make.sh b/common/make.sh index c3b0912..f103167 100644 --- a/common/make.sh +++ b/common/make.sh @@ -1,9 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -# Input environment: -# - NAME: a name for the script/tasks -# - TARGET: the Makefile target to run +NAME=$1 +TARGET=$2 WORKDIR="/tmp/${NAME}" |