mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-17 18:59:45 +02:00
setup: fail on failing command
This commit is contained in:
parent
33727e27aa
commit
a87b656cca
|
@ -29,7 +29,10 @@
|
|||
(display-function-call (quote name) args)
|
||||
(apply func args)))
|
||||
|
||||
(define-logging cmd (λ (exe . args) (apply system* (find-executable-path exe) args)))
|
||||
(define-logging cmd
|
||||
(λ (exe . args)
|
||||
(unless (apply system* (find-executable-path exe) args)
|
||||
(raise-user-error "Command Failed"))))
|
||||
(define-logging rm delete-directory/files)
|
||||
(define-logging copy copy-directory/files)
|
||||
|
||||
|
|
Loading…
Reference in a new issue