Skip to content

Commit 10d76b8

Browse files
authored
fix(phpactor): check if directory exists
1 parent f8bda16 commit 10d76b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/phpactor/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "phpactor",
33
"id": "phpactor",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"description": "Installs the phpactor language server for php.",
66
"options": {
77
"version": {

src/phpactor/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ set -ex
44

55
PHPACTOR_INSTALL_DIR="/opt/phpactor"
66

7-
git clone -b "${VERSION}" -- https://github.com/phpactor/phpactor "${PHPACTOR_INSTALL_DIR}"
7+
if [ ! -d "${PHPACTOR_INSTALL_DIR}" ]; then
8+
git clone -b "${VERSION}" -- https://github.com/phpactor/phpactor "${PHPACTOR_INSTALL_DIR}"
9+
fi
810

911
cd "${PHPACTOR_INSTALL_DIR}"
1012

0 commit comments

Comments
 (0)