#!/usr/bin/env bash if ping 192.168.122.30 -c 1 | grep 'Unreachable'; then /root/bin/rvm fi