Skip to content

Commit

Permalink
Removed redundant backup files
Browse files Browse the repository at this point in the history
Added version file and -v flag for version querying
  • Loading branch information
Kardelio committed Oct 16, 2020
1 parent 811dd55 commit 4596a27
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 365 deletions.
1 change: 1 addition & 0 deletions .version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
9 changes: 8 additions & 1 deletion easy-dumpsys
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ objectcolor="\033[2m"
packagecolor="\033[36;2m"
reset="\033[0m"

DIR=$(dirname "$0")
versionFile="$DIR/.version"

timestamp=$(date +%s)
dsFileName=".ds_temp_file_$timestamp"
simpleFile=".ds_temp_simple_file_$timestamp"
Expand All @@ -28,13 +31,17 @@ useSpecificFile=""
# static final int STARTED = 4; // Created and started, not resumed.
# static final int RESUMED = 5; // Created started and resumed.

while getopts khf: flag
while getopts khf:v flag
do
case "${flag}" in
h)
echo "TODO: Print help"
exit 0
;;
v)
echo "Easy-Dumpsys Version: $(cat "$versionFile")"
exit 0
;;
k)
echo "Keeping the file: $dsFileName"
printf "${infocolor}Keeping the file: ${dsFileName}${reset}\n"
Expand Down
167 changes: 0 additions & 167 deletions easy-dumpsys-BU

This file was deleted.

197 changes: 0 additions & 197 deletions easy-dumpsys-pre-file-read

This file was deleted.

0 comments on commit 4596a27

Please sign in to comment.