From 0db0db4f6b87e85f992e18bc8843e4f8eb26d08f Mon Sep 17 00:00:00 2001 From: Emil Date: Wed, 27 Sep 2023 05:49:50 +0000 Subject: [PATCH] cd project root --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 44aaf3c..e39debb 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ #!/bin/sh +cd $(dirname "$(readlink -f "$0")") SUDO=${SUDO:-sudo} cc baked.c -o baked -std=gnu99 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS $SUDO install -m 755 baked /usr/local/bin