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