added build-dep

This commit is contained in:
JaKooLit
2025-02-05 09:53:30 +09:00
parent eef6cdd5a5
commit 214fe3997f
4 changed files with 35 additions and 4 deletions

View File

@@ -68,6 +68,16 @@ install_package() {
fi
}
# Function for build depencies with a progress bar
build_dep() {
echo -e "${INFO} building depencies for ${MAGENTA}$1${RESET} "
(
stdbuf -oL sudo build-dep -y "$1" 2>&1
) >> "$LOG" 2>&1 &
PID=$!
show_progress $PID "$1"
}
# Function for re-installing packages with a progress bar
re_install_package() {
(