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

install: Dont quote number vars, to support older bash versions
This commit is contained in:
Noah Gorny
2021-04-04 22:34:25 +03:00
committed by GitHub

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"