OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90e55c3
)
autostart menu cleaner
author
paperbenni
<paperbenni@gmail.com>
Tue, 15 Sep 2020 18:34:17 +0000
(20:34 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Tue, 15 Sep 2020 18:34:17 +0000
(20:34 +0200)
autostart.sh
patch
|
blob
|
history
diff --git
a/autostart.sh
b/autostart.sh
index
03bd873
..
7264cdc
100755
(executable)
--- a/
autostart.sh
+++ b/
autostart.sh
@@
-369,6
+369,22
@@
if ! iconf -i norootinstall && ! islive; then
fi
fi
+TODAY="$(date '+%d%m')"
+OTHERTODAY="$(iconf today)"
+
+if [ -z "$OTHERTODAY" ]
+then
+ iconf today "$(date '+%d%m')"
+ OTHERTODAY="$(iconf today)"
+fi
+
+if ! [ "$TODAY" = "$OTHERTODAY" ]
+then
+ iconf today "$(date '+%d%m')"
+ echo "running daily routine"
+ menuclean
+fi &
+
# displays message user opens the terminal for the first time
if ! iconf -i nohelp; then
if ! grep -q 'instantterminalhelp' ~/.zshrc; then