mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-09-27 20:48:53 +02:00
setup: fail on failing command
This commit is contained in:
parent
33727e27aa
commit
a87b656cca
1 changed files with 4 additions and 1 deletions
|
@ -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