From 9352aadf81efb96602809bf218fbaa91952f570b Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 20 Apr 2020 15:57:03 -0700 Subject: [PATCH] error if not in CI --- snap/local/build_and_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snap/local/build_and_install.sh b/snap/local/build_and_install.sh index e21ecce89..4c9754d3e 100755 --- a/snap/local/build_and_install.sh +++ b/snap/local/build_and_install.sh @@ -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