Skip to content

Commit bfec076

Browse files
committed
fx macOS if [[ ]] -> [ ] bashism
1 parent b75ea3a commit bfec076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install-nix-from-closure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ checkingRequirements() { # This function must have checks only. Without makin
221221
fi
222222

223223
# macOS support for 10.10 or higher
224-
if [[ "$(uname -s)" = "Darwin" ]]; then
224+
if [ "$(uname -s)" = 'Darwin' ]; then
225225
if [[ $(($(sw_vers -productVersion | cut -d '.' -f 2))) -lt 10 ]]; then
226226
error "macOS $(sw_vers -productVersion) is not supported, upgrade to 10.10 or higher"
227227
fi

0 commit comments

Comments
 (0)