Commit 3ca5d342 authored by Vitaly Lipatov's avatar Vitaly Lipatov

tasknumber: fix bashism

parent 60aa6f0f
......@@ -118,6 +118,7 @@ get_local_alt_contents_index()
tasknumber()
{
local num="${*/\#/}"
local num="$(echo "$*" | sed -e "s| *#*||g")"
isnumber "$num" && echo "$num"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment