run now asks to skip & archive link
This commit is contained in:
parent
0161eeb8db
commit
091303fc88
@ -9,11 +9,25 @@ rmlint)
|
||||
/srv/pool/
|
||||
;;
|
||||
download)
|
||||
ENTRY=$(zenity --entry --width=250 --title "Push Manager" \
|
||||
--text="Verify the following entry is correct" \
|
||||
--add-entry="Clipboard:" --entry-text "$(xclip -o -sel clip)")
|
||||
ENTRY=$(zenity --entry --width=250 \
|
||||
--title "Insert a link" \
|
||||
--text="Verify the following link is correct" \
|
||||
--add-entry="Link:" \
|
||||
--entry-text "$(xclip -o -sel clip)")
|
||||
if [ -n "$ENTRY" ]; then
|
||||
ghostty -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
|
||||
cmd="ssh miniserver \"download -u jawz"
|
||||
|
||||
if ! zenity --question --text "Use archive database?" \
|
||||
--ok-label="Yes" --cancel-label="Cancel"; then
|
||||
cmd+=" -a"
|
||||
fi
|
||||
if ! zenity --question --text "Skip downloaded files?" \
|
||||
--ok-label="Yes" --cancel-label="Cancel"; then
|
||||
cmd+=" -s"
|
||||
fi
|
||||
|
||||
cmd+=" -i \"$ENTRY\" \""
|
||||
ghostty -e "$cmd"
|
||||
else
|
||||
zenity --error --width=250 \
|
||||
--text "Please verify and try again"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user