Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Fix for config file not ending with a new line.
'A more POSIX-compliant way to add a new line.'

Include an uninstall script to clean up when module is uninstalled.
  • Loading branch information
ipdev99 committed May 3, 2023
1 parent da01134 commit b92c4f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions customize.sh
Expand Up @@ -117,6 +117,9 @@ then
TmpConfigFile=$MODPATH/TmpSystemlessDebloater.cfg
sed -e '/^#/d' -e 's/#.*//g' -e 's/\"//g' -e 's/[ \t ]//g' -e '/^\s*$/d' $ConfigFile > $TmpConfigFile

# Add new line to end of temp config if it does not exist.
[ -n "$(tail -c1 $TmpConfigFile)" ] && echo >> $TmpConfigFile

# Read DebloatList
DebloatList=$'\n'
while read AppName
Expand Down
8 changes: 8 additions & 0 deletions uninstall.sh
@@ -0,0 +1,8 @@
#!/system/bin/sh

## This script is part of the SystemlessDebloater module project.
## zgfg @ xda-developers
## Script by ipdev @ xda-developers

# Remove additional files.
rm /data/local/tmp/SystemlessDebloater-service.log

0 comments on commit b92c4f3

Please sign in to comment.