From 2b5c58cf83d4c751443db99cb39dcc65b8605984 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 4 Jul 2025 09:12:36 +0200 Subject: fix --- slackware-bootstrap/bootstrap | 4 ++-- slackware-bootstrap/step1 | 8 ++++---- slackware-bootstrap/step2 | 10 +++++----- slackware-bootstrap/step2-finish | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'slackware-bootstrap') 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 ] ===========================" -- cgit v1.2.3