diff --git a/fd-commit b/fd-commit index 9a8b51f3..0b5c665d 100755 --- a/fd-commit +++ b/fd-commit @@ -46,9 +46,9 @@ while read line; do name= autoname= while read l; do if [[ "$l" == "Auto Name:"* ]]; then - autoname=${l##*:} + autoname=${l#*:} elif [[ "$l" == "Name:"* ]]; then - name=${l##*:} + name=${l#*:} fi done < "$file"