summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-07-04 09:12:36 +0200
committernavewindre <boneyaard@gmail.com>2025-07-04 09:12:36 +0200
commit2b5c58cf83d4c751443db99cb39dcc65b8605984 (patch)
treeffc8cee41e244240d66385b466e4a1f285e81386
parent94291899afc6c7a079889beed2b9dbc79588a585 (diff)
fix
-rwxr-xr-xslackware-bootstrap/bootstrap4
-rwxr-xr-xslackware-bootstrap/step18
-rwxr-xr-xslackware-bootstrap/step210
-rwxr-xr-xslackware-bootstrap/step2-finish2
4 files changed, 12 insertions, 12 deletions
diff --git a/slackware-bootstrap/bootstrap b/slackware-bootstrap/bootstrap
index 26eb9b6..7bc2cbc 100755
--- a/slackware-bootstrap/bootstrap
+++ b/slackware-bootstrap/bootstrap
@@ -22,11 +22,11 @@ fi
echo "working dir: $basedir"
-if [[ ! -f "~/.user-done" ]]; then
+if [[ ! -f "$HOME/.user-done" ]]; then
sh $basedir/user $username
fi
-if [[ ! -f "~/.sudo-done" ]]; then
+if [[ ! -f "$HOME/.sudo-done" ]]; then
sh $basedir/sudo
fi
diff --git a/slackware-bootstrap/step1 b/slackware-bootstrap/step1
index cfb5e80..2c884e8 100755
--- a/slackware-bootstrap/step1
+++ b/slackware-bootstrap/step1
@@ -3,20 +3,20 @@ basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cp $basedir/post-functions.conf /etc/slackpkg/post-functions.conf
-if [[ -f "~/.step1-done" ]]; then
+if [[ -f "$HOME/.step1-done" ]]; then
sh $basedir/step2
exit
fi
-if [[ ! -f "~/.stable-done" ]]; then
+if [[ ! -f "$HOME/.stable-done" ]]; then
sh $basedir/update-stable
fi
-if [[ ! -f "~/.current-done" ]]; then
+if [[ ! -f "$HOME/.current-done" ]]; then
sh $basedir/update-current
fi
-if [[ ! -f "~/.purge-done" ]]; then
+if [[ ! -f "$HOME/.purge-done" ]]; then
sh $basedir/package-purge
fi
diff --git a/slackware-bootstrap/step2 b/slackware-bootstrap/step2
index 9ac5f3f..fc0c4b3 100755
--- a/slackware-bootstrap/step2
+++ b/slackware-bootstrap/step2
@@ -3,23 +3,23 @@ basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
kernelver="6.15.2"
-if [[ -f "~/.step2-done" ]]; then
+if [[ -f "$HOME/.step2-done" ]]; then
sh $basedir/step2-finish
exit
fi
rm /root/.bash_profile
-if [[ ! -f "~/.slpkg-done" ]]; then
+if [[ ! -f "$HOME/.slpkg-done" ]]; then
sh $basedir/slpkg
fi
-if [[ ! -f "~/.multilib-done" ]]; then
+if [[ ! -f "$HOME/.multilib-done" ]]; then
sh $basedir/multilib
fi
nreboot=0
-if [[ ! -f "~/.kernel-done" ]]; then
+if [[ ! -f "$HOME/.kernel-done" ]]; then
echo "============== [ kernel update ] ==============="
echo "you can choose to update your kernel"
echo "after system reboot."
@@ -34,7 +34,7 @@ if [[ ! -f "~/.kernel-done" ]]; then
fi
fi
-if [[ ! -f "~/.nvidia-done" ]]; then
+if [[ ! -f "$HOME/.nvidia-done" ]]; then
echo "================= [ nvidia driver ] ================="
echo "you can choose to install the nvidia driver"
echo "after system reboot."
diff --git a/slackware-bootstrap/step2-finish b/slackware-bootstrap/step2-finish
index da58e62..66bf69b 100755
--- a/slackware-bootstrap/step2-finish
+++ b/slackware-bootstrap/step2-finish
@@ -2,7 +2,7 @@
basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
-if [[ -f "~/.nreboot" ]]; then
+if [[ -f "$HOME/.nreboot" ]]; then
echo "sh $basedir/finish" >> /root/.bash_profile
echo "rm -f /root/.bash_profile" >> /root/.bash_profile
echo "============================ [ reboot ] ==========================="