bug: ne garder que le nom de base du fichier en entrée

This commit is contained in:
Jephté Clain 2015-03-06 17:51:26 +04:00
parent 9f369eb508
commit d9fc19ba96
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ splitfsep2 "$dbtable" . database table
if [ -z "$database" -a -n "$auto_db" ]; then
database="$auto_db"
if [ -z "$table" -a -n "$input" -a "$input" != "-" ]; then
table="${input%.*}"
table="$(basename -- "$input")"
table="${table%.*}"
fi
fi