Skip to content

Commit b834ce0

Browse files
committed
Check for config.json looking for an existing installation
1 parent 43f8193 commit b834ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/swiftly-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ while [ -z "$DISABLE_CONFIRMATION" ]; do
543543
esac
544544
done
545545

546-
if [[ -d "$HOME_DIR" ]]; then
546+
if [[ -f "$HOME_DIR/config.json" ]]; then
547547
detected_existing_installation="true"
548548
if [[ "$overwrite_existing_intallation" == "true" ]]; then
549549
echo "Overwriting existing swiftly installation at $(replace_home_path $HOME_DIR)"

0 commit comments

Comments
 (0)