summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-08-31 18:27:09 +0100
committerLeah Rowe <leah@libreboot.org>2025-08-31 18:27:09 +0100
commitad58364e189d90284e8bc888ec1bf1b555768c47 (patch)
treec859e0c90e5a37b216c15f4eb12c4857028ba9dc /mk
parent09646783a5b352d5d7ad166d01db9e0536a56ca5 (diff)
mk: simplify the main script check
it's still not perfect, but now it's unambiguous. the previous generic check was written based on the fact that xbmk's main script used to also be called via several symlinks, which is no longer the case. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'mk')
-rwxr-xr-xmk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk b/mk
index 8da15f5b..872ce264 100755
--- a/mk
+++ b/mk
@@ -5,7 +5,7 @@
set -u -e
-if [ "./${0##*/}" != "${0}" ] || [ ! -f "mk" ] || [ -L "mk" ]; then
+if [ "$0" != "./mk" ]; then
printf "You must run this in the proper work directory.\n" 1>&2
exit 1
fi