Skip to content

Commit 2dc5148

Browse files
committed
Add KEEP_CHROME_PROFILE option
1 parent 2c89bbf commit 2dc5148

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,13 @@ main() {
108108
log_d "TagUI run stopped successfuly"
109109
fi
110110

111-
rm -rf $ROBOCAT_HOME/tagui/src/chrome/tagui_user_profile
111+
if [ -z "$KEEP_CHROME_PROFILE" ]; then
112+
log_d "Clearing previous chrome profile"
113+
rm -rf $ROBOCAT_HOME/tagui/src/chrome/tagui_user_profile
114+
else
115+
log_d "Reusing previous chrome profile"
116+
fi
117+
112118
TAGUI_COMMAND="tagui $FLOW_PATH $DATA_PATH $TAGUI_ARGS"
113119
log_d "Running TagUI with the following command: $TAGUI_COMMAND"
114120
$TAGUI_COMMAND

0 commit comments

Comments
 (0)