diff --git a/scripts/install.sh b/scripts/install.sh index 33a5c97..356fcf1 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,6 +2,16 @@ INSTALL_DIR=/usr/local/bin REPO_URL="https://github.com/mirantiscontainers/blueprint" +# Check if there is sufficient permission for the binary download to succeed later in the script +touch testfile +if [[ $? -ne 0 ]] +then + echo "Unable to write to directory: $(pwd)" + echo "Change to a directory with sufficient permissions and retry." + exit 1 +fi +rm testfile + # Determine the version if [[ ! -n $VERSION ]] then