Skip to content

Commit 089be3a

Browse files
committed
fixed some bug by testing within a vm
1 parent 4a617a2 commit 089be3a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# === vars ===
44
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5-
WAIT=5 # basic time to wait in between
5+
WAIT=3 # basic time to wait in between
66

77
# === func ===
88
# sudo temp for unattended install
@@ -18,7 +18,7 @@ keep_alive_sudo() {
1818
echo "keep-alive (sudo) started"
1919
return 0
2020
else
21-
echo "authentication failed; abort"
21+
echo "authentication failed"
2222
return 1
2323
fi
2424
}
@@ -43,7 +43,7 @@ usr_interact() {
4343
}
4444
# installing required software
4545
install_requirements() {
46-
sudo pacman -Syu --noconfirm --needed openssh borg rsync && return 0
46+
sudo pacman -Syu --noconfirm --needed openssh borg python-llfuse rsync && return 0
4747
return 1
4848
}
4949
# rsync recovery

src/packages/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# === vars ===
4-
pkgs_dir="$PKGS_WORKING_DIR/packages"
4+
pkgs_dir="$PKGS_WORKING_DIR"
55
# pacman pkgs
66
pacman_pkgs_dir="$pkgs_dir/pacman"
77
nvidia_pkgs="$pacman_pkgs_dir/nvidia.txt"
@@ -22,7 +22,7 @@ check_pkgs() {
2222
for pkgs_file in "$@"; do
2323
echo "loading pkg file *$pkgs_file* ..."
2424
if [[ ! -f "$pkgs_file" ]]; then
25-
echo "*$pkgs_file* not found; abort installation"
25+
echo "*$pkgs_file* not found"
2626
return 1
2727
fi
2828
done
@@ -118,7 +118,7 @@ load_modules() {
118118
else
119119
echo "*$modules_list* not found"
120120
fi
121-
exit 1
121+
return 1
122122
}
123123

124124
# === main ===

0 commit comments

Comments
 (0)