Skip to content

Commit

Permalink
chmod +x phpactor.phar
Browse files Browse the repository at this point in the history
  • Loading branch information
zonuexe committed Nov 15, 2023
1 parent 6822e04 commit 2c5a1e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,11 @@ have to ensure a compatible version of phpactor is used."
(unless (file-exists-p (expand-file-name ".gitignore" phpactor-install-directory))
(write-region "*\n" nil (expand-file-name ".gitignore" phpactor-install-directory) nil :silent))
(if phar-available
(php-runtime-expr (format "copy(%s, %s)"
(php-runtime-quote-string phpactor-phar-download-url)
(php-runtime-quote-string (expand-file-name "phpactor.phar" phpactor-install-directory))))
(let ((phar-file (expand-file-name "phpactor.phar" phpactor-install-directory)))
(php-runtime-expr (format "copy(%s, %s)"
(php-runtime-quote-string phpactor-phar-download-url)
(php-runtime-quote-string phar-file)))
(chmod phar-file #o755))
(cl-loop for file in '("composer.json" "composer.lock")
for code = (format "copy(%s, %s)"
;; Do not use `f-join' as this string may be a URL.
Expand Down

0 comments on commit 2c5a1e9

Please sign in to comment.