changeset 26:67b4b7916036

bing4desktop-0.240208-0.2
author prymula <prymula76@outlook.com>
date Thu, 08 Feb 2024 11:56:27 +0100
parents 4797b096efab
children 8aeafb8ad1e1
files bing4desktop/copy_desktop.sh bing4desktop/remove_desktop.sh
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/bing4desktop/copy_desktop.sh	Thu Feb 08 11:43:26 2024 +0100
+++ b/bing4desktop/copy_desktop.sh	Thu Feb 08 11:56:27 2024 +0100
@@ -1,10 +1,10 @@
 #?/bin/sh
-exclude=lost+found
+
 MYDIR=/home
 
 for file in $(ls ${MYDIR}) ; do\
-	if [[ $file != $exclude ]]
-		then
-		cp bing4desktop.desktop /home/${file}/.local/share/applications
+	if [[ "$file" == "lost+found" ]] ; then
+		continue
 	fi
+	cp bing4desktop.desktop /home/${file}/.local/share/applications
 done
--- a/bing4desktop/remove_desktop.sh	Thu Feb 08 11:43:26 2024 +0100
+++ b/bing4desktop/remove_desktop.sh	Thu Feb 08 11:56:27 2024 +0100
@@ -1,10 +1,10 @@
 #?/bin/sh
-exclude=lost+found
+
 MYDIR=/home
 
 for file in $(ls ${MYDIR}) ; do\
-	if [[ $file != $exclude ]]
-		then
-		rm /home/${file}/.local/share/applications/bing4desktop.desktop
+	if [[ "$file" == "lost+found" ]] ; then
+		continue
 	fi
+	rm /home/${file}/.local/share/applications/bing4desktop.desktop
 done