Skip to content

Commit 5534ecd

Browse files
authored
Silence grep output and remove unused bash variable (#47)
1 parent e3cfe7c commit 5534ecd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

deploy_nixos/nixos-instantiate.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ config=$2
77
config_pwd=$3
88
shift 3
99

10-
# Building the command
11-
nixExpression=<<EOF
12-
13-
EOF
1410

1511
command=(nix-instantiate --show-trace --expr '
1612
{ system, configuration, hermetic ? false, ... }:
@@ -32,7 +28,7 @@ command=(nix-instantiate --show-trace --expr '
3228
out_path = os.system;
3329
}')
3430

35-
if readlink --version | grep GNU; then
31+
if readlink --version | grep -q GNU; then
3632
readlink="readlink -f"
3733
else
3834
if command -v greadlink &> /dev/null; then

0 commit comments

Comments
 (0)