manage cwd better

This commit is contained in:
Jeffrey Paul 2018-03-06 18:50:06 -05:00
parent 5e8d26f05d
commit ac041136e8
1 changed files with 2 additions and 4 deletions

View File

@ -1,8 +1,4 @@
#!/bin/bash
#exec 1 2>&1 | tee -a ${LOG_FILE}
# snap writes stuff under $CWD like a noob
cd /tmp
if which lsb_release; then
export DEBIAN_FRONTEND=noninteractive
@ -11,6 +7,8 @@ if which lsb_release; then
apt-get -y install $(cat $(lsb_release -i -s)-$(lsb_release -r -s)-packages.txt)
# install kubectl
# snap writes stuff under $CWD like a noob
cd /tmp
snap install kubectl --classic
fi