1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Fix expansion of maybe non-set variable

This commit is contained in:
Shane Kilkelly 2020-06-05 14:45:18 +01:00
parent 920bea32ca
commit 01be99db49

View file

@ -32,7 +32,7 @@ function __main__() {
LINES="$DEFAULT_LINES"
FOLLOW_FLAG=""
if [[ "$1" == "help" ]] || [[ "$1" == "--help" ]]; then
if [[ "${1:-null}" == "help" ]] || [[ "${1:-null}" == "--help" ]]; then
usage
exit
fi