Skip to content

Commit 77fd60d

Browse files
authored
SpicesUpdate v7.8.5: BugFixes in a bash script (#6979)
1 parent 10fad25 commit 77fd60d

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### v7.8.5~20250315
2+
* BugFixes in a bash script.
3+
14
### v7.8.4~20250304
25
* Improved functioning.
36

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Spices Update",
44
"max-instances": "1",
55
"hide-configuration": false,
6-
"version": "7.8.4",
6+
"version": "7.8.5",
77
"description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.",
88
"multiversion": true,
99
"cinnamon-version": [

SpicesUpdate@claudiux/files/SpicesUpdate@claudiux/scripts/move_themes.sh

+12-8
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
# Moves themes to their new location,
44
# creating symbolic links to avoid any crash.
55

6-
SOURCEDIR="$HOME/.local/share/themes/"
7-
TARGETDIR="$HOME/.themes/"
6+
NEWDIR=$HOME/.local/share/themes
7+
OLDDIR=$HOME/.themes
88

9-
[[ -d $SOURCEDIR ]] || exit 0
9+
[[ -d $OLDDIR ]] || mkdir -p $OLDDIR
1010

11-
cd $SOURCEDIR
12-
for f in $(ls -A); do {
11+
[[ -d $NEWDIR ]] || mkdir -p $NEWDIR
12+
13+
cd $OLDDIR
14+
for f in $(ls -1A); do {
1315
[[ -d $f && ! -L $f ]] && {
14-
[[ -L $TARGETDIR$f ]] && rm -f $TARGETDIR$f
15-
mv $f $TARGETDIR || rm -rf $f
16-
ln -s $TARGETDIR$f
16+
[[ -L $NEWDIR/$f ]] && rm -f $NEWDIR/$f
17+
mv $f $NEWDIR/
18+
ln -s $NEWDIR/$f
1719
}
1820
}; done
21+
22+
exit 0

0 commit comments

Comments
 (0)