From 97bfead037b70603e5ccee4077ddbfc902152362 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Mon, 11 Aug 2008 19:31:01 +0200 Subject: [PATCH] tg update: Do not use ${:n:m} substitution (bash extension) --- tg-update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tg-update.sh b/tg-update.sh index 563a62d..27a8e81 100644 --- a/tg-update.sh +++ b/tg-update.sh @@ -39,8 +39,8 @@ if [ -s "$depcheck" ]; then sed 's/^\([^+]\)/-\1/' | # now each line is +branch or -branch (+ == recurse) uniq -s 1 | # fold branch lines; + always comes before - and thus wins within uniq while read depline; do - action="${depline:0:1}" - dep="${depline:1}" + action="$(echo "$depline" | cut -c 1)" + dep="$(echo "$depline" | cut -c 2-)" # We do not distinguish between dependencies out-of-date # and base out-of-date cases for $dep here, but thanks -- 2.30.2