Make second argument of run-sudo-command optional
This commit is contained in:
parent
fd819e2bd6
commit
226271860c
@ -15,10 +15,10 @@
|
||||
"Prompts the user for a password"
|
||||
(read-one-line (current-screen) prompt :password t))
|
||||
|
||||
(defmacro run-sudo-command (cmd)
|
||||
(defmacro run-sudo-command (cmd &optional collect-output-p)
|
||||
`(run-shell-command
|
||||
(format nil "SUDO_ASKPASS=~~/bin/stumpwm-sudo.sh sudo -A ~S" ,cmd)
|
||||
t))
|
||||
,collect-output-p))
|
||||
|
||||
;; Commands
|
||||
(defcommand shutdown () ()
|
||||
|
Loading…
Reference in New Issue
Block a user