configuration/local/bin/anselmage

8 lines
209 B
Plaintext
Raw Normal View History

2020-05-13 11:00:38 +02:00
#!/bin/sh
[ "$#" -eq 0 ] && exit
2020-12-04 14:43:22 +01:00
torsocks curl -O "$@"
2020-05-13 11:00:38 +02:00
image="$(basename "$@")"
2021-01-23 22:37:47 +01:00
rifle -fF "$image"
2020-05-13 11:00:38 +02:00
mv "$image" /data/pictures/anselmages/
ln -s ../anselmages/"$image" /data/pictures/background-source/"$image"