Revert "Check _NIX_TEST_NO_SANDBOX when setting _canUseSandbox."

This reverts commit 7ed0ab2dab.
This commit is contained in:
Ben Radford 2023-07-18 09:26:48 +01:00
parent 4107adcef8
commit 37598a13e8
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5

View file

@ -141,7 +141,7 @@ restartDaemon() {
startDaemon
}
if [[ -z "${_NIX_TEST_NO_SANDBOX:-}" ]] && [[ $(uname) == Linux ]] && [[ -L /proc/self/ns/user ]] && unshare --user true; then
if [[ $(uname) == Linux ]] && [[ -L /proc/self/ns/user ]] && unshare --user true; then
_canUseSandbox=1
fi