tar: Plug $line var leak

master
Ville Skyttä 2015-06-01 19:14:51 +03:00
parent 055d1ae59f
commit d049481952
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ __gnu_tar_parse_help()
# Hack: parse --warning keywords from tar's error output
__gtar_parse_warnings()
{
local line
while IFS= read line; do
if [[ $line =~ ^[[:blank:]]*-[[:blank:]]*[\`\']([a-zA-Z0-9-]+)\'$ ]]; then
echo "${BASH_REMATCH[1]} no-${BASH_REMATCH[1]}"