From 46a366635c42be1da7d4efcbccbb5f1bf11b2b6a Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Thu, 26 Jul 2018 05:30:05 -0700 Subject: [PATCH] Fixed locale issue, do not parse for string. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 3d1a779d..2c33c60a 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2041,7 +2041,7 @@ get_available_branches() { cd "${directory}" || return 1 # Get reachable remote branches, but store STDERR as STDOUT variable - output=$( { git remote show origin | grep 'tracked' | sed 's/tracked//;s/ //g'; } 2>&1 ) + output=$( { git ls-remote --head --quiet | cut -d'/' -f3- -; } 2>&1 ) echo "$output" return }