base-files: fix error message for /var/{run,lock} not being links

Closes: https://github.com/void-linux/void-packages/issues/36634
This commit is contained in:
Duncaen 2022-07-17 13:02:34 +02:00
parent 330d195fb5
commit 0a378de5f8
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -38,8 +38,8 @@ make_system_dirs() {
# Create /var/run and /var/lock symlinks.
for d in run lock; do
if [ ! -h "var/$d" -a -d var/${d} ]; then
echo "/${d} must not be a directory, exiting!"
if [ ! -h "var/${d}" -a -d "var/${d}" ]; then
echo "/var/${d} must not be a directory, exiting!"
exit 1
fi
done