dot

packages and services management
Log | Files | Refs | README

commit 85bd44eb240f03448d28cdc617a23b55e1d0df33
parent 23f069f18fc85f82d05ddcf2fd8ca9814b579f62
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Sat,  5 Aug 2017 17:02:20 +0200

shell/bin/tree: no need to escape '&': awk does not support it.

Diffstat:
Mshell/bin/sane-name | 2+-
Mshell/bin/tree | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/shell/bin/sane-name b/shell/bin/sane-name @@ -6,5 +6,5 @@ do old=$(basename "$path") new=$(printf %s "$old" | tr -c '[:alnum:],.' '-' | sed -r 's/-+/-/g') - [ "$dir/$old" != "$dir/$new" ] && mv + [ "$dir/$old" != "$dir/$new" ] && mv -- "$dir/$old" "$dir/$new" done diff --git a/shell/bin/tree b/shell/bin/tree @@ -1,5 +1,5 @@ awk '{ - gsub("&", "\&amp;"); gsub("<", "\&lt;") + gsub("&", "&amp;"); gsub("<", "&lt;") do { print } while (sub("/[^/]*$", "")) }' | sort -u | awk '{ count = split($0, line, "/")