From f041272302d38252013960b79fbbb9803799e725 Mon Sep 17 00:00:00 2001 From: clsty Date: Fri, 31 Oct 2025 22:38:00 +0800 Subject: [PATCH] Detect cmds in checkdeps --- sdata/subcmd-checkdeps/0.run.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/sdata/subcmd-checkdeps/0.run.sh b/sdata/subcmd-checkdeps/0.run.sh index ae512c574..2670dcac6 100644 --- a/sdata/subcmd-checkdeps/0.run.sh +++ b/sdata/subcmd-checkdeps/0.run.sh @@ -9,15 +9,11 @@ pkglistfile=$(mktemp) pkglistfile_orig=${LIST_FILE_PATH} pkglistfile_orig_s=${REPO_ROOT}/cache/dependencies_stripped.conf -#if ! "$(command -v curl)";then -# echo "Please install curl first.";exit 1 -#fi -#if ! "$(command -v gzip)";then -# echo "Please install gzip first.";exit 1 -#fi -#if ! "$(command -v pacman)";then -# echo "pacman not found, aborting...";exit 1 -#fi +for cmd in curl gzip pacman;do + if ! command -v $cmd;then + echo "Please install $cmd first.";exit 1 + fi +done remove_bashcomments_emptylines $pkglistfile_orig $pkglistfile_orig_s cat $pkglistfile_orig_s | sed "s_\ _\n_g" > $pkglistfile