fixed issue with sed compatibility (bsd/gnu)

This commit is contained in:
Chad Nelson 2024-06-04 12:01:21 -06:00
parent 07e7fe1d5e
commit 49a9c81ecd
4 changed files with 54 additions and 141 deletions

View file

@ -21,3 +21,13 @@
(define %copyright '(2023))
(define %gettext-domain "msg")
(define G_ identity)
(define N_ identity)
(define (init-nls) "Dummy as no NLS is used" #t)
(define (init-locale) "Dummy as no NLS is used" #t)

View file

@ -199,5 +199,5 @@
(define (update-uid)
;; Update UID for msg image
(system "sed -i \"s/\\$UID/$(id -u)/g\" ~/.guix/home/config.scm")
(system "sed -i.bak \"s/\\$UID/$(id -u)/g\" ~/.guix/home/config.scm && rm ~/.guix/home/config.scm.bak")
(system "ssh -o StrictHostKeyChecking=no -i $HOME/.guix/ssh-cert/msg_rsa root@127.0.0.1 -p 9001 'cp /mnt/macos/config.scm /etc/config.scm'"))