https://github.com/idaholab/moose
Raw File
Tip revision: 3821010bde8431efb5b19ac66403fd7eab662786 authored by Cody Permann on 24 January 2020, 20:57:07 UTC
MOOSE Version 1.0.0
Tip revision: 3821010
install_packages.sh
#!/bin/bash

# Supported package managers
MGR_ARY=("apt" "yum")

for MGR in "${MGR_ARY[@]}"; do
    # Run matching install
    if [ $(command -v $MGR | grep -c $MGR) -gt 0 ]; then
        ./${MGR}_installs.sh
    fi
done
back to top