From: Fredrik Tolf Date: Fri, 20 May 2011 03:23:35 +0000 (+0200) Subject: planime: Fixed proper quoting of basename. X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=commitdiff_plain;h=061f96f39161db753b603e9f057b1e3afb1b6e83 planime: Fixed proper quoting of basename. --- diff --git a/planime b/planime index 9c17459..a25761e 100755 --- a/planime +++ b/planime @@ -19,7 +19,7 @@ findfile() { local file tail eq eqt m matches max score matches=() for file in "$1"*; do - tail="${file#$1}" + tail="${file#"$1"}" eq="${tail%.*}" m=n if [ "${eq%% *}" -eq "$2" ] 2>/dev/null; then