mirror of
https://github.com/moparisthebest/ImageDownloader
synced 2024-11-09 19:15:00 -05:00
11 lines
268 B
Bash
11 lines
268 B
Bash
|
#!/bin/bash
|
||
|
URL=$1
|
||
|
BROWSER=firefox
|
||
|
JAVA=/usr/lib/jvm/java-8-openjdk/bin/java
|
||
|
IMAGE_DOWNLOADER=/home/daniel/Projects/ImageDownloader/target/ImageDownloader-0.1.jar
|
||
|
if [ ${URL: -97:1} == "#" ]; then
|
||
|
$JAVA -jar $IMAGE_DOWNLOADER $URL | feh -. -
|
||
|
else
|
||
|
$BROWSER $URL
|
||
|
fi
|