Skip to content

Commit

Permalink
Improve: improve updated notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr328 committed Feb 15, 2022
1 parent 9c90f38 commit 97d22fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions module/src/main/assets/customize.d/51-create-update-flags.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create flags that indicate module updated or installed

ui_print "- Reset installed flags"

touch "$MODPATH/.module_updated"
Empty file.
5 changes: 3 additions & 2 deletions module/src/main/assets/service.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MODDIR=${0%/*}
FLAG_FILE="$MODDIR/.module_updated"

if [ ! -f "$MODDIR/module_updated" ]; then
if [ ! -f "$FLAG_FILE" ]; then
exit 0
fi

Expand All @@ -10,4 +11,4 @@ done

/system/bin/am start -n com.github.kr328.clipboard/.InstalledActivity

rm -rf "$MODDIR/module_updated"
rm -rf "$FLAG_FILE"

0 comments on commit 97d22fe

Please sign in to comment.