Explorar el Código

Fix strict bash check for argument definedness

Taddeus Kroes hace 2 semanas
padre
commit
5cd0689098
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      install.sh

+ 1 - 1
install.sh

@@ -2,7 +2,7 @@
 set -euo pipefail
 
 INSTALL_ALL=0
-if [ "$1" = "-a" ]; then INSTALL_ALL=1; fi
+if [ "${1:-}" = "-a" ]; then INSTALL_ALL=1; fi
 
 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"