From: Oleg Broytman Date: Thu, 26 Mar 2015 18:20:21 +0000 (+0300) Subject: Quote filename X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;h=179f0bf901bed2b9138e569c00f270a65cc5d8e6;p=git-scripts.git Quote filename --- diff --git a/touch-all b/touch-all index d1035e0..3c2b213 100755 --- a/touch-all +++ b/touch-all @@ -4,5 +4,5 @@ # and set the file's modification time to that date/time. git ls-tree -r --name-only HEAD | while read filename; do - touch --date="`git log -1 --format=\"%cD\" -- $filename`" "$filename" + touch --date="`git log -1 --format=\"%cD\" -- \"$filename\"`" "$filename" done