diff --git a/srcpkgs/base-directories/INSTALL b/srcpkgs/base-directories/INSTALL index 6414503382c..6a61fe2a695 100644 --- a/srcpkgs/base-directories/INSTALL +++ b/srcpkgs/base-directories/INSTALL @@ -15,11 +15,12 @@ post) if [ "$(readlink -f $dir)" != "$dest" ]; then echo "WARNING: removing wrong symlink in /$dir..." rm -f "$dir" - ln -sf "$dest" "$dir" fi elif [ -d "$dir" ]; then echo "WARNING: removing directory /$dir..." rm -rf "$dir" + fi + if [ ! -e "$dir" ]; then ln -sf "$dest" "$dir" fi shift; shift; diff --git a/srcpkgs/base-directories/template b/srcpkgs/base-directories/template index 8ba54fe09a2..e4e8772fea1 100644 --- a/srcpkgs/base-directories/template +++ b/srcpkgs/base-directories/template @@ -1,6 +1,6 @@ # Template file for 'base-directories' pkgname=base-directories -version=0.10 +version=0.11 build_style=custom-install short_desc="XBPS FHS Base System directories" maintainer="Juan RP "