Skip to content

Commit e22e982

Browse files
committed
Fix phpactor-install-or-update
1 parent 11ca285 commit e22e982

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

phpactor.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ have to ensure a compatible version of phpactor is used."
178178
(file-exists-p (expand-file-name "composer.lock" phpactor--lisp-directory)))
179179
phpactor--lisp-directory
180180
phpactor--remote-composer-file-url-dir))
181-
(php-version (string-to-number (php-runtime-expr "PHP_VERSION_ID"))))
181+
(php-version (progn
182+
(unless (file-directory-p phpactor-install-directory)
183+
(mkdir phpactor-install-directory))
184+
(string-to-number (php-runtime-expr "PHP_VERSION_ID")))))
182185
(unless (file-directory-p phpactor-install-directory)
183186
(make-directory phpactor-install-directory))
184187
(cond

0 commit comments

Comments
 (0)