about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/system/boot/stage-1.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix
index 21a49d45789e..a74cfafdd37f 100644
--- a/nixos/modules/system/boot/stage-1.nix
+++ b/nixos/modules/system/boot/stage-1.nix
@@ -90,7 +90,7 @@ let
           [ ! -f "$out/lib/$(basename $LIB)" ] && cp -pdv $LIB $out/lib
           while [ "$(readlink $LIB)" != "" ]; do
             LINK="$(readlink $LIB)"
-            if [ "${LINK:0:1}" != "/" ]; then
+            if [ "''${LINK:0:1}" != "/" ]; then
               LINK="$(dirname $LIB)/$LINK"
             fi
             LIB="$LINK"