#!/bin/bash KEEPLOG=1 # ivac start script if [ ! -d ~/.ivac ] ; then echo "creating .ivac directory ..." mkdir ~/.ivac fi IVAC=`type -p ivac` [ -z "$IVAC" ] && IVAC="./ivac" if [ ! -e $IVAC ] ; then echo "ivac executable not found :(" else echo "running $IVAC ..." $IVAC $@ 2> ~/.ivac/log if [ -z "`echo $@ | grep -- -h`" ] ; then reset clear fi fi [ "$KEEPLOG" = "0" ] && rm -f ~/.ivac/log