mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Use -n/-z in if conditions where possible
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash -ex
|
||||
|
||||
# use RAM disk if possible
|
||||
if [ "$CI" == "" ] && [ -d /dev/shm ]; then
|
||||
if [ -z "$CI" ] && [ -d /dev/shm ]; then
|
||||
TEMP_BASE=/dev/shm
|
||||
else
|
||||
TEMP_BASE=/tmp
|
||||
@@ -15,7 +15,7 @@ cleanup () {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "$NO_CLEANUP" == "" ] && trap cleanup EXIT
|
||||
if [ -z "$NO_CLEANUP" ] && trap cleanup EXIT
|
||||
|
||||
# store repo root as variable
|
||||
REPO_ROOT=$(readlink -f $(dirname "$0")/../..)
|
||||
|
||||
Reference in New Issue
Block a user