fix bug
This commit is contained in:
+3
-2
@@ -28,7 +28,7 @@ odict(){
|
|||||||
# Linux specific functions
|
# Linux specific functions
|
||||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||||
|
|
||||||
set_wallpaper(){
|
function set_wallpaper(){
|
||||||
local file=$1
|
local file=$1
|
||||||
# convert to abs path
|
# convert to abs path
|
||||||
if [[ ! "$file" = /* ]]; then
|
if [[ ! "$file" = /* ]]; then
|
||||||
@@ -37,12 +37,13 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|||||||
gsettings set org.gnome.desktop.background picture-uri file://$file
|
gsettings set org.gnome.desktop.background picture-uri file://$file
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mac OSX specific functions
|
# Mac OSX specific functions
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
|
||||||
set_wallpaper(){
|
function set_wallpaper(){
|
||||||
local file=$1
|
local file=$1
|
||||||
# convert to abs path
|
# convert to abs path
|
||||||
if [[ ! "$file" = /* ]]; then
|
if [[ ! "$file" = /* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user