From 112f3b20df4802e160ab0227074483c991f6b922 Mon Sep 17 00:00:00 2001 From: James Pannacciulli Date: Tue, 13 Jun 2017 02:40:43 -0700 Subject: remove superfluous printf -v --- lib/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/functions.sh') diff --git a/lib/functions.sh b/lib/functions.sh index f8e679f..f9aab58 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -25,8 +25,7 @@ _example.unpack() { } _tag.unpack() { - local _tag - printf -v _tag "%s" "${1%%:$'\n'*}" + local _tag="${1%%:$'\n'*}" (( ${#_tag} < ${#1} )) || return 1 printf "%s" "$_tag" } -- cgit v1.2.3