Script: improve Build.sh by using the builtin [[]] instead of []

This commit is contained in:
Rosalie Wanders
2024-07-08 19:14:43 +02:00
parent 0f6834b196
commit d67187a90a
+2 -2
View File
@@ -6,8 +6,8 @@ build_config="${1:-Debug}"
build_dir="$toplvl_dir/Build/$build_config"
threads="${2:-$(nproc)}"
if [ "$1" = "--help" ] ||
[ "$1" = "-h" ]
if [[ "$1" = "--help" ]] ||
[[ "$1" = "-h" ]]
then
echo "$0 [Build Config] [Thread Count]"
exit