From 33821d8f688d202f82dcc84e3526698edc8fdf4f Mon Sep 17 00:00:00 2001 From: traxys Date: Tue, 4 Jul 2023 20:58:32 +0200 Subject: [PATCH] thinkpad-nixos: Fix issue with gpt script --- hostconfig/thinkpad-nixos/work.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hostconfig/thinkpad-nixos/work.nix b/hostconfig/thinkpad-nixos/work.nix index 219b863..de1ddb1 100644 --- a/hostconfig/thinkpad-nixos/work.nix +++ b/hostconfig/thinkpad-nixos/work.nix @@ -17,7 +17,9 @@ (pkgs.writeShellScriptBin "gpt" '' #!/usr/bin/env bash - if [ -n "$2" ]; then + if [[ "$1" = "--" ]]; then + shift + elif [[ -n "$2" ]]; then VER=" $1" shift fi