Skip to content

Commit b0686c3

Browse files
committed
improve drop filename with space
1 parent ffbce7c commit b0686c3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts.tar.xz

-28 Bytes
Binary file not shown.

scripts/set-plymouth

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ if [ "$FileDrop" = "" ]; then
169169
echo "FileExtension is $FileExtension"
170170
if [ $FileExtension = "png" ] || [ $FileExtension = "PNG" ]; then
171171
echo " set Plymouth tile picture to $PlymouthFile"
172-
sudo cp $PlymouthFile $MoePlymouthBackGroundFile
172+
sudo cp "$PlymouthFile" $MoePlymouthBackGroundFile
173173
echo ""
174174
else
175175
echo " Convert $PlymouthFile to $TempDir/$MoePlymouthBackGroungFileName"
176-
ReturnValue=`convert $PlymouthFile $TempDir/$MoePlymouthBackGroungFileName`
176+
ReturnValue=`convert "$PlymouthFile" $TempDir/$MoePlymouthBackGroungFileName`
177177
if [ "$ReturnValue" != "" ]; then
178178
echo "Can't convert to PNG-image"
179179
echo "Can not change Plymouth picture"

scripts/set-theme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ if askyn; then
159159
FileExtension=`echo ${FileName##*.}`
160160
echo "FileExtension is $FileExtension"
161161
if [ $FileExtension = "png" ] || [ $FileExtension = "PNG" ]; then
162-
sudo cp $LoginFile /usr/share/themes/$ThemeDirName/gnome-shell/moebuntu_bg.png
162+
sudo cp "$LoginFile" /usr/share/themes/$ThemeDirName/gnome-shell/moebuntu_bg.png
163163
echo "Done"
164164
echo ""
165165
else
166166
echo " Convert $LoginFile to $TempDir/moebuntu_bg.png"
167-
ReturnValue=`convert $LoginFile $TempDir/moebuntu_bg.png`
167+
ReturnValue=`convert "$LoginFile" $TempDir/moebuntu_bg.png`
168168
# echo " ReturnValue is $ReturnValue"
169169
if [ "$ReturnValue" != "" ]; then
170170
echo "Can't convert to PNG-image"

0 commit comments

Comments
 (0)