From: Chris Koeritz Date: Sat, 14 Mar 2015 17:10:43 +0000 (-0400) Subject: keeping symlinks as links, since otherwise we cannot use this handy script to backup... X-Git-Tag: 2.140.90~697 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=546d89a985ece7dcf4c4080383287635efe6e131;p=feisty_meow.git keeping symlinks as links, since otherwise we cannot use this handy script to backup things like a wine prefix to collect a game's latest state. this does mean we no longer copy the actual data of the symlink, but that has been shown many times to be a bad thing anyway... --- diff --git a/scripts/files/zip_directories.sh b/scripts/files/zip_directories.sh index 5a603b4d..fce35b43 100644 --- a/scripts/files/zip_directories.sh +++ b/scripts/files/zip_directories.sh @@ -31,7 +31,7 @@ function flattenizer() done if [ ! -z "$dirname" -a -d "$dirname" ]; then echo "flattening '$dirname'..." - zip -rm "${dirname}_$(date_stringer).zip" "$dirname" &>/dev/null + zip --symlinks -rm "${dirname}_$(date_stringer).zip" "$dirname" &>/dev/null fi done }