use = instead of == for posix compliance

When /bin/sh is set to a strict posix shell (like dash) the script does not work.
This commit is contained in:
ait 2022-05-02 16:44:51 +02:00 committed by GitHub
parent 39f77bee60
commit cadca93532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ get_cspack()
wget -nc -O $1.pk3 https://archive.org/download/hl-counter-strike/$2.zip
}
if [ "$1" == "-accumulative" ]; then
if [ "$1" = "-accumulative" ]; then
get_cspack pak00 csbeta_1.0
get_cspack pak01 csbeta_1.0_b2premaps
get_cspack pak02 csbeta_1.0_to_1.1