run now asks to skip & archive link
This commit is contained in:
parent
0161eeb8db
commit
091303fc88
@ -9,11 +9,25 @@ rmlint)
|
|||||||
/srv/pool/
|
/srv/pool/
|
||||||
;;
|
;;
|
||||||
download)
|
download)
|
||||||
ENTRY=$(zenity --entry --width=250 --title "Push Manager" \
|
ENTRY=$(zenity --entry --width=250 \
|
||||||
--text="Verify the following entry is correct" \
|
--title "Insert a link" \
|
||||||
--add-entry="Clipboard:" --entry-text "$(xclip -o -sel clip)")
|
--text="Verify the following link is correct" \
|
||||||
|
--add-entry="Link:" \
|
||||||
|
--entry-text "$(xclip -o -sel clip)")
|
||||||
if [ -n "$ENTRY" ]; then
|
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
|
else
|
||||||
zenity --error --width=250 \
|
zenity --error --width=250 \
|
||||||
--text "Please verify and try again"
|
--text "Please verify and try again"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user