run updated to use ghostty, and packaged so dependencies can be overlayed

This commit is contained in:
2025-01-10 15:58:56 -06:00
parent e24c468c79
commit 7d8e9fb07a
2 changed files with 29 additions and 9 deletions

View File

@@ -0,0 +1,34 @@
#! /usr/bin/env bash
operation=${1:-$(gum choose rmlint download git)}
case $operation in
rmlint)
rmlint -g --types="duplicates" \
--config=sh:handler=clone \
/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)")
if [ -n "$ENTRY" ]; then
ghostty -e "ssh miniserver ""download -u jawz -i ""$ENTRY"" "" "
else
zenity --error --width=250 \
--text "Please verify and try again"
fi
;;
git)
git_dir=$HOME/Development/Git
while IFS= read -r repo; do
if ! [ -d "$repo/.git" ]; then
continue
fi
cd "$repo" || exit
gum style --foreground 2 "Updating $(basename "$repo")"
git fsck --full
git pull
done < <(fd . "$git_dir" -td --absolute-path -d 1)
;;
esac