From 9a9cbc53e1a133053b6fbb81dffdcd747c3af9d7 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 17 May 2022 14:12:32 -0400 Subject: [PATCH] source-script: Install missing packages Signed-off-by: Stephen Gallagher --- nodejs-sources.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nodejs-sources.sh b/nodejs-sources.sh index b1295ca..a71ef37 100755 --- a/nodejs-sources.sh +++ b/nodejs-sources.sh @@ -100,6 +100,12 @@ assign_positional_args 1 "${_positionals[@]}" ### END OF CODE GENERATED BY Argbash (sortof) ### ]) # [ <-- needed because of Argbash +packages=("jq" "wget" "tar" "fedpkg" "grep" "sed") + +rpm -q ${packages[@]} >/dev/null +if [ $? -ne 0 ]; then + sudo dnf -y install ${packages[@]} +fi set -e