Code Review
/
icn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Check for errors by default in scripts
[icn.git]
/
env
/
metal3
/
01_install_package.sh
diff --git
a/env/metal3/01_install_package.sh
b/env/metal3/01_install_package.sh
index
ef82f46
..
bff8096
100755
(executable)
--- a/
env/metal3/01_install_package.sh
+++ b/
env/metal3/01_install_package.sh
@@
-1,5
+1,5
@@
#!/usr/bin/env bash
#!/usr/bin/env bash
-set -e
x
+set -e
ux -o pipefail
LIBDIR="$(dirname "$PWD")"
LIBDIR="$(dirname "$PWD")"
@@
-32,7
+32,7
@@
function install_essential_packages {
add-apt-repository -y ppa:longsleep/golang-backports
apt-get update
add-apt-repository -y ppa:longsleep/golang-backports
apt-get update
- apt-get install golang-go
+ apt-get install golang-go
-y
}
function install_ironic_packages {
}
function install_ironic_packages {
@@
-112,9
+112,10
@@
install() {
#install_kubernetes_packages $1
}
#install_kubernetes_packages $1
}
-if ["$1" == "-o"]; then
+if [ "$#" -eq 0 ]; then
+ install online
+elif [ "$1" == "-o" ]; then
install offline
install offline
- exit 0
+else
+ exit 1
fi
fi
-
-install