Skip to content

Commit 64d911f

Browse files
committed
- [X] shell-quote-argument around shell code
1 parent 4eacd79 commit 64d911f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

psci.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ We chose to load the .psci file's content (the purescript doc proposes its use).
212212
(interactive)
213213
(lexical-let ((archive-folder (psci/--compute-modules-folder (projectile-project-root))))
214214
(deferred:$
215-
(deferred:process-shell (format "rm -rf %s/node_modules/*" archive-folder)) ;; clean compiled version
216-
(deferred:nextc it (lambda () (call-interactively 'psci/reset!))) ;; flush in-memory version
217-
(deferred:nextc it ;; at last reload all files
215+
(deferred:process-shell "rm -rf " (shell-quote-argument (format "%s/node_modules/*" archive-folder))) ;; clean compiled version
216+
(deferred:nextc it (lambda () (call-interactively 'psci/reset!))) ;; flush in-memory version
217+
(deferred:nextc it ;; at last reload all files
218218
(lambda ()
219219
(-when-let (modules (psci/--project-module-files!))
220220
(mapc #'psci/--load-file! modules)))))))

todo.org

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ CLOSED: [2014-10-29 Wed 18:54]
2727
- [X] Add to el-get - https://github.com/ardumont/el-get/blob/add-psci-recipe/recipes/psci.rcp
2828
- [X] Update documentation regarding installation steps
2929
- [X] Update documentation regarding usage
30-
* IN-PROGRESS 0.0.4 [50%]
30+
* IN-PROGRESS 0.0.4 [57%]
3131
- [X] Update version
3232
- [X] Add an interactive command for displaying the current version
3333
- [X] Use compatible with old emacs version api (replace `(setq-local var val)` with `(set (make-local-variable 'var) val)`)
34-
- [ ] shell-quote-argument
34+
- [X] `shell-quote-argument` around shell code
35+
- [ ] Remove projectile dependencies and compute the root folder using emacs primitives (thanks @purcell again)
3536
- [ ] Add a minor mode instead of modifying purescript-mode-map
3637
- [ ] Update documentation about the minor-mode activation

0 commit comments

Comments
 (0)