home · contact · privacy
Always call _lib.sh from script's directory.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 3 Sep 2026 08:03:45 +0000 (08:03 +0000)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 3 Sep 2026 08:03:45 +0000 (08:03 +0000)
_lib.sh
chrooted_command.sh
install_debian.sh
setup_luksvg.sh
start_home.sh
start_root.sh

diff --git a/_lib.sh b/_lib.sh
index f9ca73b6ae33520d4865dfe2525a0b13aecc6f0c..26dde067485a74c7e3b070ddc0c5a7b2c6c4e601 100644 (file)
--- a/_lib.sh
+++ b/_lib.sh
@@ -1,5 +1,6 @@
 set -Ceu
 SCRIPT_NAME=$0
+cd "$(dirname "${SCRIPT_NAME}")"
 
 # constants unlikely to change
 NAME_DEV=dev
index 3002bfde734c5a5e2ae2d2ff6b75c57a53e5ee92..8e0033ad902d20253dd8199feba752eda933350a 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. ./_lib.sh
+. "$(dirname "$0")/_lib.sh"
 
 # inputs to confirm
 usage $# "partition" "root-name" "command"
index 0867be49050203de04e6291cdf3b53c15eda4f19..6dce243bf18ea808e0b6fe0855237163574c311f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. ./_lib.sh
+. "$(dirname "$0")/_lib.sh"
 
 # constants unlikely to change
 FNAME_INITRD=initrd.img
index 8a651b4135d3710192ec622a098a5bc61f569bef..885966ce1cb3bdd997cb7f3582be4b5e0162693c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. ./_lib.sh
+. "$(dirname "$0")/_lib.sh"
 
 # inputs to confirm
 usage $# "partition"
index c4c838ff30899ff0cee4a6283aded0fd41db1d18..9eaf55e4be8931958f396aed4c2a7d6a48ee7c39 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
-cd "$(dirname "$0")" || exit
-. ./_lib.sh
+. "$(dirname "$0")/_lib.sh"
 
 # constants unlikely to change
 FNAME_PROFILE=.profile
index a2de4e0f6aca9c4063387bed0107240b5ff64833..f87a1fbf5b603ae88f3aa64c5c8ea05aa37277d8 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
-cd "$(dirname "$0")" || exit
-. ./_lib.sh
+. "$(dirname "$0")/_lib.sh"
 
 # constants unlikely to change
 FNAME_START_HOME=start_home.sh