Update checkdeps

This commit is contained in:
clsty
2025-10-30 12:25:15 +08:00
parent 0ac39d4356
commit 634fb09d2e
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -69,7 +69,8 @@ function pause(){
fi
}
function remove_bashcomments_emptylines(){
mkdir -p "$(dirname "$2")" && cat "$1" | sed -e 's/#.*//' -e '/^[[:space:]]*$/d' > "$2"
mkdir -p "$(dirname "$2")"
cat "$1" | sed -e 's/#.*//' -e '/^[[:space:]]*$/d' > "$2"
}
function prevent_sudo_or_root(){
case $(whoami) in
+1 -2
View File
@@ -5,8 +5,7 @@
pkglistfile=$(mktemp)
pkglistfile_orig=${LIST_FILE_PATH}
mkdir -p ./cache
pkglistfile_orig_s=./cache/dependencies_stripped.conf
pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf
remove_bashcomments_emptylines $pkglistfile_orig $pkglistfile_orig_s
cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile