mirror of
https://src.fedoraproject.org/rpms/nodejs18.git
synced 2024-11-28 11:06:08 +00:00
source-script: Install missing packages
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
42ee482d06
commit
9a9cbc53e1
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue