source-script: Install missing packages
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
bb35fed7e2
commit
17860dee0a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user