#!/bin/sh skip_searching_gallery="${skip_searching_gallery:-false}" #echo "$skip_searching_gallery" while [ $# -gt 0 ]; do if [[ $1 == "--"* ]]; then v="${1/--/}" #declare "$v"="$2" "$v"="$2" shift fi shift done #echo "$skip_searching_gallery" #if [[ -z $skip_searching_gallery ]]; then if [[ $skip_searching_gallery == true ]]; then echo "not looping through galleries" else echo "looping through galleries" fi if [[ -z $http_proxy ]]; then echo "not using proxy" curl_command="curl" else echo "using proxy" curl_command="curl -x $http_proxy" fi echo $curl_command $curl_command https://cdni.pornpics.com/460/7/424/83105958/83105958_010_388f.jpg -O