allow delegator to download and open files

This commit is contained in:
Felix Van der Jeugt 2021-05-07 00:00:06 +02:00
parent f0f034fc3e
commit 98a40da3eb
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -28,6 +28,7 @@ selection
run run
otp otp
student student
curl
HERE HERE
)" )"
@ -58,4 +59,10 @@ case "$choice" in
choice="$(pick < /data/courses/students.csv)" choice="$(pick < /data/courses/students.csv)"
inject "$choice" inject "$choice"
;; ;;
'curl')
d="$(mktemp -d)"
trap "rm -r '$d'" EXIT KILL
cd "$d"
curl -OJ "$(xclip -o)"
rifle -fF *
esac esac