Advertisement
Advertisement
| 12.28.2007 at 04:16PM PST, ID: 23048359 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
# #!/bin/bash # if [ -z "$1" ]; then echo 'ERROR' exit 1 else /bin/ls $1 #do command error=$? # Preserve the exit code if [ $error != 0 ]; then echo 'ERROR' else echo 'OK' fi fi |