summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/inside/inside.sh
blob: c6872fa89a7f5886d64b8ccdb7339c433c94f6c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ $# -ne 1 ]; then 
	echo Sorry, expected 1 argument but $# were passed
	exit 1
fi

if [ -f $1 ]; then
	cat $1
	exit 0
else
	echo "$1:
	is not a valid file"
	exit 2
fi