From 799409aa0c932802a0aa3c408a05d9b5c21bc80e Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Tue, 2 Apr 2013 02:19:26 +0200 Subject: [PATCH] typo: sanitize path --- atom | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/atom b/atom index caed8a0..a879217 100755 --- a/atom +++ b/atom @@ -1135,13 +1135,12 @@ getDestDir() { replace=$(sanitizeFile "$disc") destdir="${destdir//%\{disc\}/$replace}" else - destdir+=(sanitizeFile "${filename%%/*}") - part="${filename#*/}/" - while : + destdir+=$(sanitizeFile "${filename%%/*}") + part=${filename#*/} + while [[ $part =~ / ]] do destdir+="/$(sanitizeFile "${part%%/*}")" part=${part#*/} - [ -z "$part" ] && break done fi if ! [ -d "$destdir" ]