Sha256: 3fa8b855e5281a09b9abffd88bf91d55b8ff8eaad760a9c6091467584ce8176a
Contents?: true
Size: 950 Bytes
Versions: 1
Compression:
Stored size: 950 Bytes
Contents
#!/bin/bash # Main install script. mission scripts get appended to this when executing # bundle exec gearship setup_host # Exit immediately if a pipeline returns a non-zero status. # (unless part of the test in an if statement) set -e export DEBIAN_FRONTEND=noninteractive # Mute STDOUT and STDERR function gearship.mute() { echo "Running \"$@\"" `$@ >/dev/null 2>&1` return $? } function gearship.installed() { dpkg -s $@ >/dev/null 2>&1 return $? } function gearship.install() { if gearship.installed "$@"; then echo "$@ already installed" return 1 else echo "No packages found matching $@. Installing..." gearship.mute "apt-get -y install $@" return 0 fi } echo " ___ _ _ / __| ___ __ _ _ _ ___| |_ (_) _ __ | (_ |/ -_)/ _\` || '_|(_-<| ' \ | || '_ \\ \___|\___|\__,_||_| /__/|_||_||_|| .__/ |_| "
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gearship-0.2.4 | lib/templates/gearship.sh |