thinkpad-nixos: Fix issue with gpt script

This commit is contained in:
traxys 2023-07-04 20:58:32 +02:00
parent f205eaf02f
commit 33821d8f68

View file

@ -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