fix the parsing
This commit is contained in:
@@ -11,7 +11,7 @@ PWD=$(dirname $(readlink -f $0))
|
|||||||
# here are some other ways of downloading wallpaper
|
# here are some other ways of downloading wallpaper
|
||||||
|
|
||||||
#get random photo
|
#get random photo
|
||||||
url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.urls.raw')
|
url=$(curl https://api.unsplash.com/photos/random\?client_id\=sqNEPALHnwDAScQe7uA-l_1HDYH_XCHgCg3xLha47fA\&count\=1\&query\="tree,stars,nature,sea,weather"| jq -r '.[].urls.full')
|
||||||
#download the file
|
#download the file
|
||||||
wget -O $PWD/wallpaper.jpg $url
|
wget -O $PWD/wallpaper.jpg $url
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user