run-if-exists.sh 52 B

123456
  1. #!/bin/sh
  2. if [ -f $1 ]; then
  3. $1 || exit $?;
  4. fi