Mercurial > repos > other > SevenLanguagesInSevenWeeks
view 1-Ruby/run.sh @ 76:5860845f5dac
Create module with synchronous translation and notes on how to run
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 03 Feb 2018 20:25:47 +0000 |
parents | 9f14e665fd1b |
children |
line wrap: on
line source
#! /bin/bash if [[ $# -ne 1 ]]; then echo "Need to supply file to run" >2 exit 1 elif [[ ! -f $1 ]]; then echo "Need to supply file to run" >2 exit 1 fi ruby "$1" > "${1/.rb}"-ruby.output 2>&1 irb "$1" > "${1/.rb}"-irb.output 2>&1