#!/bin/sh # install # hfs # # Created by Chris Suter on 4/30/15. # if [ ! "$MACHINE" ] ; then echo "MACHINE not specified" exit 1 fi ROOT=hfs-root.tbz # Virtual machine stuff [ "$VM" != "" -a "$VMRUN" != "" ] && { ping -c 1 -t 2 $MACHINE || { VMX="$HOME/Documents/Virtual Machines.localized/$VM.vmwarevm/$VM.vmx" "$VMRUN" revertToSnapshot "$VMX" "Safe" || exit 1 "$VMRUN" start "$VMX" || exit 1 } } rsync -P "$BUILT_PRODUCTS_DIR/$ROOT" $MACHINE: || exit 1 ssh $MACHINE bash -x -s </dev/null 2>/dev/null