View difference between Paste ID: Wgz47xVD and Vu9rqZTR
SHOW: | | - or go back to the newest paste.
1-
#!/bin/bash
1+
#!/bin/bash
2-
:<<israeltorres_comment_block
2+
:<<israeltorres_comment_block
3-
3+
4-
 ./btemplate.sh
4+
 ./btemplate.sh
5-
 Israel Torres
5+
 Israel Torres
6-
 -date
6+
 -date
7-
 -info here
7+
 -info here
8-
8+
9-
 Mac OS X 10.7.3 11D50b 
9+
 Mac OS X 10.7.3 11D50d 
10-
 Darwin Kernel Version 11.3.0
10+
 Darwin Kernel Version 11.3.0
11-
 GNU bash, version 3.2.48(1)-release 
11+
 GNU bash, version 3.2.48(1)-release 
12-
12+
13-
israeltorres_comment_block
13+
israeltorres_comment_block
14-
14+
15-
#required app check
15+
#required app check
16-
rqdapp='app_name_here'
16+
rqdapp='app_name_here'
17-
hash $rqdapp 2>&- || { echo >&2 "$rqdapp binary not found - aborting"; exit 1; }
17+
hash $rqdapp 2>&- || { echo >&2 "$rqdapp binary not found - aborting"; exit 1; }
18-
#
18+
#
19-
19+
20-
if [ ! $# -lt 1 ]; then
20+
if [ ! $# -ne 1 ]; then
21-
21+
22-
    echo "script ran"
22+
    echo "script ran"
23-
23+
24-
else
24+
else
25-
    echo "usage: $0 'string'"
25+
    echo "usage: $0 'string'"
26-
    echo "example: $0 string"
26+
    echo "example: $0 string"
27-
fi
27+
fi
28
#eof