mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-05 19:11:43 -05:00
deploy: Error out when the FILE argument is missing.
* guix/scripts/deploy.scm (guix-deploy): Error out when FILE is false.
This commit is contained in:
parent
c82b374979
commit
7243a8c7ec
1 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2019 David Thompson <davet@gnu.org>
|
||||
;;; Copyright © 2019 Jakob L. Kreuze <zerodaysfordays@sdf.org>
|
||||
;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -156,7 +156,10 @@ (define (handle-argument arg result)
|
|||
(let* ((opts (parse-command-line args %options (list %default-options)
|
||||
#:argument-handler handle-argument))
|
||||
(file (assq-ref opts 'file))
|
||||
(machines (or (and file (load-source-file file)) '())))
|
||||
(machines (and file (load-source-file file))))
|
||||
(unless file
|
||||
(leave (G_ "missing deployment file argument~%")))
|
||||
|
||||
(show-what-to-deploy machines)
|
||||
|
||||
(with-status-verbosity (assoc-ref opts 'verbosity)
|
||||
|
|
Loading…
Reference in a new issue