From 179f0bf901bed2b9138e569c00f270a65cc5d8e6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 26 Mar 2015 21:20:21 +0300 Subject: [PATCH] Quote filename --- touch-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5