From 0f6a27c2c46ab6603a6b1ed9cee99c9f81eca3c5 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 9 Oct 2021 14:52:10 +0300 Subject: scripts: home: Make sure profile directory exists. * guix/scripts/home.scm (process-action): Make sure profile directory exists. --- guix/scripts/home.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guix/scripts') diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm index 8656db22c9..55e7b436c1 100644 --- a/guix/scripts/home.scm +++ b/guix/scripts/home.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2021 Andrew Tropin ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Pierre Langlois +;;; Copyright © 2021 Oleg Pykhalov ;;; ;;; This file is part of GNU Guix. ;;; @@ -189,6 +190,7 @@ (define (process-action action args opts) declaration as an argument (a file name.) OPTS is the raw alist of options resulting from command-line parsing." (define (ensure-home-environment file-or-exp obj) + (ensure-profile-directory) (unless (home-environment? obj) (leave (G_ "'~a' does not return a home environment ~%") file-or-exp)) -- cgit v1.2.3