From 091303fc88dc3fe8362b25a30467d764efaf6105 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Sat, 25 Jan 2025 16:03:31 -0600 Subject: [PATCH] run now asks to skip & archive link --- src/packaged_scripts/run.sh | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/packaged_scripts/run.sh b/src/packaged_scripts/run.sh index c290a05..8798ca1 100644 --- a/src/packaged_scripts/run.sh +++ b/src/packaged_scripts/run.sh @@ -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"