Commits

Jack Frost committed b3e4b5c

sup

  • Participants
  • Parent commits 82652f5

Comments (0)

Files changed (1)

 
 cfg_url_regex='^[a-z]+://.+'
 cfg_tmp_dir="/tmp/$USER/sup"
-cfg_script_url='http://zfh.so/upload'
+cfg_script_url='https://zfh.so/upload'
 
 [[ -f $HOME/.suprc ]] && { source $HOME/.suprc; }
 
 	curl -F file="@$file" \
 		-F upload_mode='api' \
 		-F submit="" \
-		"$cfg_script_url" -s -L -A 'Sup Phost' || { return 1; }
+		-F flag_private="$flag_private" \
+		-F secret="$secret" \
+		"$cfg_script_url" -skL -A 'Sup ZFH' || { return 1; }
 
 	[[ "$flag_rm" ]] && { rm "$file"; }
 
 
 sup.if_url() { echo "$1" | grep -oE "$cfg_url_regex" &>/dev/null; }
 
-while getopts "D:sFrRh" option; do
+while getopts "pRsFD:h" option; do
 	case "$option" in
+		p) flag_private='1';;
+
 		R) flag_rm='1';;
 
 		s) flag_scrot='1';;