Browse Source

sync2: warn about symlinks and skip dirs

master
Alejandro Mery 13 years ago
parent
commit
8ff834bef0
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      sync2.sh

+ 11
- 1
sync2.sh

@ -1,5 +1,15 @@
#!/bin/sh
info() { echo "$$ $*"; }
err() { echo "E: $$ $*" >&2; }
FILES="$(pwd -P)"
for x; do
echo "$$ [$x]"
if [ -L "$x" ]; then
err "$x: symlinks not supported"
elif [ -d "$x" ]; then
true
else
info "[$x]"
fi
done

Loading…
Cancel
Save