Default to removing build artifacts in b-a-d.sh
This commit is contained in:
parent
3f78ca1cc9
commit
d1f32d2b9c
|
@ -12,6 +12,18 @@ else
|
|||
SUDO="sudo"
|
||||
fi
|
||||
|
||||
KEEP_ARTIFACTS=""
|
||||
if [[ -n ${1} ]]; then
|
||||
for arg in ${@}; do
|
||||
case ${arg} in
|
||||
-k|--keep)
|
||||
KEEP_ARTIFACTS="y"
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
echo -n "> Linting code for errors... "
|
||||
./lint || exit
|
||||
|
||||
|
@ -48,3 +60,6 @@ for HOST in ${HOSTS[@]}; do
|
|||
sleep 30
|
||||
echo "done."
|
||||
done
|
||||
if [[ -z ${KEEP_ARTIFACTS} ]]; then
|
||||
rm ../pvc*_${version}*
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue