We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ead1c04 commit 40b2f90Copy full SHA for 40b2f90
1 file changed
_scripts/make-dist.sh
@@ -1,5 +1,29 @@
1
#!/bin/bash
2
3
+echo "checking for dependencies"
4
+
5
+DEPENDENCIES=$(cat <<EOF
6
+curl
7
+jq
8
+pip
9
+tar
10
+zip
11
+EOF
12
+)
13
14
+for dep in $DEPENDENCIES; do
15
+ dep_path=`command -v $dep`
16
+ if [[ $dep_path ]]; then
17
+ echo "requirement '$dep' found ($dep_path). ok"
18
+ else
19
+ echo "requirement '$dep' not found. aborting"
20
+ exit 1
21
+ fi
22
+done
23
24
+# fail on any error
25
+set -e
26
27
CWD=`pwd`
28
SOURCE_PATH=${CWD}/src
29
DIST_PATH=${CWD}/dist
@@ -98,6 +122,6 @@ cp -Rv $SOURCE_PATH/templates/. $TEMPLATES_PATH
98
122
99
123
# cleanup
100
124
echo "removing temp files"
101
-rm -rvf $TEMP_PATH
125
+rm -rf $TEMP_PATH
102
126
103
127
cd $CWD
0 commit comments