From d4ad4c280941cf47b097d9adb22c3b47ba50aebc Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Wed, 1 Feb 2023 00:16:40 +0800 Subject: [PATCH] never mind if commit+branch parsing did not work --- palera1n.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index dadfe7e..213d012 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -22,8 +22,8 @@ network_timeout=-1 # seconds; -1 - unlimited version="1.4.1" os=$(uname) dir="$(pwd)/binaries/$os" -commit=$(git rev-parse --short HEAD) -branch=$(git rev-parse --abbrev-ref HEAD) +commit=$(git rev-parse --short HEAD || true) +branch=$(git rev-parse --abbrev-ref HEAD || true) max_args=1 arg_count=0 disk=8