This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set default UPLOAD_PATH value | |
UPLOAD_PATH="/path/to/upload/to" | |
# Use getopts to check for the -d switch and set the UPLOAD_PATH value accordingly | |
while getopts "d:" opt; do | |
case $opt in | |
d) | |
UPLOAD_PATH=$OPTARG |