error if not in CI

This commit is contained in:
Brad Warren 2020-04-20 15:57:03 -07:00
parent 95512047a8
commit 9352aadf81

View file

@ -1,6 +1,11 @@
#!/bin/bash
set -ex
if [[ -z "$TRAVIS" ]]; then
echo "This script makes global changes to the system it is run on so should only be run in CI."
exit 1
fi
sudo /snap/bin/lxd.migrate -yes
sudo /snap/bin/lxd waitready
sudo /snap/bin/lxd init --auto