dotfiles

My personal home directory config files
git clone https://erai.gay/code/dotfiles/
Log | Files | Refs | LICENSE

watch.sh (203B)


      1 #!/bin/bash
      2 
      3 if [ $# -lt 1 ]; then
      4 	echo "usage: watch.sh [command]"
      5 	exit 1
      6 fi
      7 
      8 echo "$ $*"
      9 
     10 : < ~/.post & pid=$!
     11 
     12 timeout 10 /bin/bash -c "$*" 2>&1
     13 echo "; status $?"
     14 echo
     15 
     16 wait ${pid}
     17 
     18 exec "$0" "$@"