From 4e781e2623eda311cd667a7dfb8311017dfa13fa Mon Sep 17 00:00:00 2001 From: William Bartee Date: Wed, 16 Mar 2022 16:52:43 -0700 Subject: [PATCH] Issue #85 - Prevent unintentional file deletion --- setup/setup_snyk.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/setup_snyk.sh b/setup/setup_snyk.sh index c6b3f19..26a7797 100755 --- a/setup/setup_snyk.sh +++ b/setup/setup_snyk.sh @@ -21,6 +21,8 @@ die () { [ "$#" -eq 2 ] || die "Setup Snyk requires two argument, $# provided" +cd "$(mktemp -d)" + echo "Installing the $1 version of Snyk on $2" if [ "$1" == "latest" ]; then