From b0d04606f0709368fc06917d002ced6a28e1876a Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Wed, 16 Nov 2022 15:55:48 -0800 Subject: [PATCH] Do not error on vscode lookup failure For a system which does not have a VSCode installation, other parts of setup should still be attempted even if these particular configs can't be put in place. --- vscode.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vscode.sh b/vscode.sh index 6013ad5..b4ce5f7 100755 --- a/vscode.sh +++ b/vscode.sh @@ -29,10 +29,10 @@ esac if [[ ! -d "$VSCODE_CONFIG_PATH" ]]; then echo "Could not locate vscode config path (expected at '$VSCODE_CONFIG_PATH')" - return 1 + return elif ! type "${VSCODE_BINARY[0]}" >/dev/null 2>/dev/null; then echo "Could not identify vscode binary (expected '${VSCODE_BINARY[*]}')" - return 2 + return fi # install extensions