fileset

git mirror of https://ccx.te2000.cz/bzr/fileset
git clone https://ccx.te2000.cz/git/fileset
Log | Files | Refs | README

commit 1b38ee123a1d506816d80362a1153b6b136ec07d
parent a2e6a7343c6a31eff637b7aae9187ed153c04236
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Tue, 21 Apr 2015 13:44:26 +0200

handle broken symbolic links
Diffstat:
Mbin/fileset_inc.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/fileset_inc.sh b/bin/fileset_inc.sh @@ -59,7 +59,7 @@ l() { } r() { - if test -e "$fname"; then + if test -e "$fname" -o -L "$fname"; then if $f_r; then rm_flags r else @@ -71,7 +71,7 @@ r() { f() { if test -f "$fname"; then return - elif test -e "$fname"; then + elif test -e "$fname" -o -L "$fname"; then if $f_bang; then rm_flags r else @@ -87,7 +87,7 @@ f() { d() { if test -d "$fname"; then return - elif test -e "$fname"; then + elif test -e "$fname" -o -L "$fname"; then if $f_bang; then rm_flags else