Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f640160

Browse files
committedJun 7, 2023
Quote shell arguments
1 parent 80cbb0b commit f640160

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
 

‎raycast-mode.el

+10-4
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,18 @@
157157
(let ((default-directory (raycast--extension-directory))
158158
(run-command (cond
159159
((and raycast-mode-emoji target)
160-
(format "npm run %s -- --emoji --target %s" command target))
160+
(format "npm run %s -- --emoji --target %s"
161+
(shell-quote-argument command)
162+
(shell-quote-argument target)))
161163
(raycast-mode-emoji
162-
(format "npm run %s -- --emoji" command))
164+
(format "npm run %s -- --emoji"
165+
(shell-quote-argument command)))
163166
(target
164-
(format "npm run %s -- --target %s" command target))
165-
(t (format "npm run %s" command)))))
167+
(format "npm run %s -- --target %s"
168+
(shell-quote-argument command)
169+
(shell-quote-argument target)))
170+
(t (format "npm run %s"
171+
(shell-quote-argument command))))))
166172
(compile run-command)))
167173

168174
(defun raycast--npm (command)

0 commit comments

Comments
 (0)