aboutsummaryrefslogtreecommitdiffstats
path: root/lib/functions.sh
diff options
context:
space:
mode:
authorJames Pannacciulli <jpnc@jpnc.info>2017-11-29 23:51:01 -0800
committerJames Pannacciulli <jpnc@jpnc.info>2017-11-29 23:51:01 -0800
commit80a0c8407667787dfd5842c3de21d96744463d66 (patch)
treeaeeeb1ad94c1e34280a39744f19fc6d615415a6a /lib/functions.sh
parent0074b6f1fbc8b0a550dd7f2461b993225249a9e3 (diff)
parent112f3b20df4802e160ab0227074483c991f6b922 (diff)
downloadariketa-master.tar.gz
ariketa-master.tar.bz2
Merge branch 'master' of git.jpnc.info:ariketaHEADmaster
Diffstat (limited to 'lib/functions.sh')
-rw-r--r--lib/functions.sh3
1 files changed, 1 insertions, 2 deletions
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"
}