[LEDE-DEV] [PATCH v3 10/13] scripts: quote literal {

Jan-Tarek Butt tarek at ring0.de
Thu Oct 6 01:50:37 PDT 2016


Signed-off-by: Jan-Tarek Butt <tarek at ring0.de>
---
 scripts/getver.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/getver.sh b/scripts/getver.sh
index 67ddc20..14a9e77 100755
--- a/scripts/getver.sh
+++ b/scripts/getver.sh
@@ -27,8 +27,8 @@ try_git() {
 		;;
 	*)
 		BRANCH="$(git rev-parse --abbrev-ref HEAD)"
-		ORIGIN="$(git rev-parse --verify --symbolic-full-name "${BRANCH}"@{u} 2>/dev/null)"
-		[ -n "$ORIGIN" ] || ORIGIN="$(git rev-parse --verify --symbolic-full-name master@{u} 2>/dev/null)"
+		ORIGIN="$(git rev-parse --verify --symbolic-full-name "${BRANCH}"@'{'u'}' 2>/dev/null)"
+		[ -n "$ORIGIN" ] || ORIGIN="$(git rev-parse --verify --symbolic-full-name master@'{'u'}' 2>/dev/null)"
 		REV="$(git rev-list ${REBOOT}.."$GET_REV" | wc -l | awk '{print $1}')"
 
 		if [ -n "$ORIGIN" ]; then
-- 
2.10.0




More information about the Lede-dev mailing list