-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.64 | ||
1.0.65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env sh | ||
# Copyright 2021 (c) by S D Rausty all rights reserved; Please see LICENSE | ||
# https://sdrausty.github.io hosted courtesy https://pages.github.com | ||
# Deletes '.git' directories and '*.log' files in ~/buildAPKs in order to save space in the $HOME/buildAPKs directory. | ||
##################################################################### | ||
set -eu | ||
RDR="$HOME/buildAPKs" # define project root directory | ||
_DELDIRS_ () { # delete '.git' directories | ||
find "$RDR"/sources/ -type d -name \.git > "$RDR"/tmp/del.dirs.file | ||
for DELDIR in $(cat "$RDR"/tmp/del.dirs.file) ; do rm -rf "$DELDIR" && printf '%s\n' "Deleted directory '$DELDIR '." && rm -f "$RDR"/tmp/del.dirs.file ; done | ||
} | ||
_DELFILES_ () { # delete '*.log' files | ||
printf '%s\n' "Deleting '*.log' files in directory '$RDR/var/log/'." && find "$RDR"/var/log/ -type f -name "*.log" -delete | ||
} | ||
DFEM="$(df | grep emulated)" | ||
printf '%s\n' "$DFEM" | ||
_DELDIRS_ ; _DELFILES_ | ||
printf '%s\n' "Before: $DFEM" | ||
DFEM="$(df | grep emulated)" | ||
printf '%s\n' "After: $DFEM" | ||
# trim.sh EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c92ac92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BuildAPKs/buildAPKs#1
BuildAPKs/buildAPKs#2
BuildAPKs/buildAPKs#13
BuildAPKs/buildAPKs#24
SDRausty/buildAPKs#29