Skip to content

Commit 0375f4e

Browse files
committed
improve wallpaper filename conteined space
1 parent 47c296a commit 0375f4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts.tar.xz

20 Bytes
Binary file not shown.

scripts/wallmanager

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if [ "$1" = "install" ]; then
9999
# FileDrop to login
100100
WallFileFullPath=`echo $FileDrop | tr -d \'`
101101
echo "=Set fileDrop $WallFileFullPath to Wallpicture="
102-
if [ ! -e $WallFileFullPath ]; then
102+
if [ ! -e "$WallFileFullPath" ]; then
103103
echo "File Not exist!"
104104
echo "Can not change Wallpaper"
105105
# remove temp-dir
@@ -125,7 +125,7 @@ if [ "$1" = "install" ]; then
125125
ConstMoeWallFileName=$ConstWallFileNamePng
126126
echo "FileExtension is $FileExtension"
127127
echo " Convert $WallFileFullPath to $TempDir/$ConstMoeWallFileName"
128-
ReturnValue=`convert $WallFileFullPath $TempDir/$ConstMoeWallFileName`
128+
ReturnValue=`convert "$WallFileFullPath" $TempDir/$ConstMoeWallFileName`
129129
if [ "$ReturnValue" != "" ]; then
130130
echo "Can't convert to PNG-image"
131131
echo "Can not change wallpaper picture"

0 commit comments

Comments
 (0)