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
1 changed files with 7 additions and 0 deletions

View File

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