BastliPOSPrinter

git clone git://xatko.vsos.ethz.ch/BastliPOSPrinter.git
Log | Files | Refs | README

pipeline.sh (159B)


      1 #!/bin/bash
      2 
      3 if [[ "${#@}" -eq 0 ]]
      4 then
      5 	echo "No commands specified" >&2
      6 	exit
      7 fi
      8 
      9 if [[ ${#@} -eq 1 ]]
     10 then
     11 	exec "$1"
     12 else
     13 	exec "${1}" | "$0" "${@:2}"
     14 fi