Merge pull request #1862 from NoahGorny/fix-install-error

install: Dont quote number vars, to support older bash versions
pull/1869/head
Noah Gorny 2021-04-04 22:34:25 +03:00 committed by GitHub
commit 4f0fa7ebe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ while getopts "hsinaf" opt; do
;;
esac
done
shift $(("$OPTIND" - 1))
shift $((OPTIND - 1))
if [[ $silent ]] && [[ $interactive ]]; then
echo -e "\033[91mOptions --silent and --interactive are mutually exclusive. Please choose one or the other.\033[m"