From 0a378de5f848318ff24e85c7160ca8318d55cbd7 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 17 Jul 2022 13:02:34 +0200 Subject: [PATCH] base-files: fix error message for /var/{run,lock} not being links Closes: https://github.com/void-linux/void-packages/issues/36634 --- srcpkgs/base-files/INSTALL | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/base-files/INSTALL b/srcpkgs/base-files/INSTALL index 85a7f92cd4e..c9e020948f2 100644 --- a/srcpkgs/base-files/INSTALL +++ b/srcpkgs/base-files/INSTALL @@ -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