1 2 3 4 5 6 7 8 9
#!/bin/bash if [ $# -gt 1 ]; then OUTPUT_DIR=shift else OUTPUT_DIR="" fi echo "Building armband, output dir: $OUTPUT_DIR"