Check if path provided by user is relative
This commit is contained in:
@@ -32,6 +32,10 @@ if [[ "$arg" == "--restore" ]] ; then
|
|||||||
|
|
||||||
set_wallpaper $path
|
set_wallpaper $path
|
||||||
else
|
else
|
||||||
|
if [[ "$arg" == ./* ]] ; then
|
||||||
|
arg="$PWD/$arg"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$arg" > $HOME/.wallpaper
|
echo "$arg" > $HOME/.wallpaper
|
||||||
|
|
||||||
echo "Saved $arg as a wallpaper but you need to run 'set-wallpaper --restore'"
|
echo "Saved $arg as a wallpaper but you need to run 'set-wallpaper --restore'"
|
||||||
|
|||||||
Reference in New Issue
Block a user