2021-11-01 19:26:12 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ARGS=(
|
|
|
|
"workpc - wfs-h1lbc42.hankeyinvestments.com"
|
|
|
|
"jumpbox - wfsmsvpjumpbox1"
|
|
|
|
"rptbox2 - wfsmsvsrptbox2.westlakefinancial.com"
|
|
|
|
"Quit"
|
|
|
|
)
|
|
|
|
|
2021-11-06 15:13:43 -07:00
|
|
|
CHOICE=$(printf "%s\n" "${ARGS[@]}" | rofi -config ~/SudacodeRice/rofi/flat-orange.rasi -dmenu -l 4 -i -p "RDP Helper")
|
2021-11-01 19:26:12 -07:00
|
|
|
|
|
|
|
if [[ "$CHOICE" == "Quit" ]]; then
|
|
|
|
echo "BYE" && exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$CHOICE" ]; then
|
|
|
|
TARGET=$(printf "%s\n" "${CHOICE}" | awk '{print $1}')
|
|
|
|
printf "%s\n" "TARGET: $TARGET"
|
|
|
|
~/Work/scripts/remote "$TARGET" || exit 1
|
|
|
|
fi
|