mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
Detect cmds in checkdeps
This commit is contained in:
@@ -9,15 +9,11 @@
|
|||||||
pkglistfile=$(mktemp)
|
pkglistfile=$(mktemp)
|
||||||
pkglistfile_orig=${LIST_FILE_PATH}
|
pkglistfile_orig=${LIST_FILE_PATH}
|
||||||
pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf
|
pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf
|
||||||
#if ! "$(command -v curl)";then
|
for cmd in curl gzip pacman;do
|
||||||
# echo "Please install curl first.";exit 1
|
if ! command -v $cmd;then
|
||||||
#fi
|
echo "Please install $cmd first.";exit 1
|
||||||
#if ! "$(command -v gzip)";then
|
fi
|
||||||
# echo "Please install gzip first.";exit 1
|
done
|
||||||
#fi
|
|
||||||
#if ! "$(command -v pacman)";then
|
|
||||||
# echo "pacman not found, aborting...";exit 1
|
|
||||||
#fi
|
|
||||||
remove_bashcomments_emptylines $pkglistfile_orig $pkglistfile_orig_s
|
remove_bashcomments_emptylines $pkglistfile_orig $pkglistfile_orig_s
|
||||||
|
|
||||||
cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile
|
cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile
|
||||||
|
|||||||
Reference in New Issue
Block a user