source-script: Install missing packages
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
42ee482d06
commit
9a9cbc53e1
@ -100,6 +100,12 @@ assign_positional_args 1 "${_positionals[@]}"
|
|||||||
### END OF CODE GENERATED BY Argbash (sortof) ### ])
|
### END OF CODE GENERATED BY Argbash (sortof) ### ])
|
||||||
# [ <-- needed because of Argbash
|
# [ <-- 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
|
set -e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user