mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Update checkdeps
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user