Skip to content

Commit 5acb339

Browse files
committed
update: make watch_logcat internally call prepare_file
Signed-off-by: TheSillyOk <priv.ld@proton.me>
1 parent b737385 commit 5acb339

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

post-fs-data.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function prepare_file() {
1717

1818
function watch_logcat() {
1919
local file_path="$SAVE_FOLDER/DebugAssistant$1.log"
20+
prepare_file "$file_path"
2021

2122
while [ ! ];do logcat;sleep 1;done > "$file_path" &
2223
}
@@ -31,5 +32,4 @@ else
3132
SUFFIX=""
3233
fi
3334

34-
prepare_file "$SUFFIX"
3535
watch_logcat "$SUFFIX"

0 commit comments

Comments
 (0)