base-directories: another fix for the fix...
This commit is contained in:
parent
147080c7bb
commit
4f61ee73b5
2 changed files with 3 additions and 2 deletions
|
@ -15,11 +15,12 @@ post)
|
||||||
if [ "$(readlink -f $dir)" != "$dest" ]; then
|
if [ "$(readlink -f $dir)" != "$dest" ]; then
|
||||||
echo "WARNING: removing wrong symlink in /$dir..."
|
echo "WARNING: removing wrong symlink in /$dir..."
|
||||||
rm -f "$dir"
|
rm -f "$dir"
|
||||||
ln -sf "$dest" "$dir"
|
|
||||||
fi
|
fi
|
||||||
elif [ -d "$dir" ]; then
|
elif [ -d "$dir" ]; then
|
||||||
echo "WARNING: removing directory /$dir..."
|
echo "WARNING: removing directory /$dir..."
|
||||||
rm -rf "$dir"
|
rm -rf "$dir"
|
||||||
|
fi
|
||||||
|
if [ ! -e "$dir" ]; then
|
||||||
ln -sf "$dest" "$dir"
|
ln -sf "$dest" "$dir"
|
||||||
fi
|
fi
|
||||||
shift; shift;
|
shift; shift;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'base-directories'
|
# Template file for 'base-directories'
|
||||||
pkgname=base-directories
|
pkgname=base-directories
|
||||||
version=0.10
|
version=0.11
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="XBPS FHS Base System directories"
|
short_desc="XBPS FHS Base System directories"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue