From: Oleg Broytman Date: Sat, 21 Feb 2015 16:40:13 +0000 (+0300) Subject: Escape inner quotes X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=79c956164708bb1482ceb863a6ef26a8fe12905c Escape inner quotes --- diff --git a/touch-all b/touch-all index a4be8c6..d1035e0 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