src/default.scm: add missing logic in system-hostname-check #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch ":molese-patch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Signed-off-by: molese molese@protonmail.com
src/default.scm: add missing logic in system-hostname-checkto [WIP] src/default.scm: add missing logic in system-hostname-check[WIP] src/default.scm: add missing logic in system-hostname-checkto src/default.scm: add missing logic in system-hostname-checksrc/default.scm: add missing logic in system-hostname-checkto WIP: src/default.scm: add missing logic in system-hostname-check@kreyren: It requires a separate file that has the necessary technique for determining if an environment variable is present or not before proceeding directly to the main procedure.
WIP: src/default.scm: add missing logic in system-hostname-checkto src/default.scm: add missing logic in system-hostname-checkDo whatever you think is the optimal solution i rewrite it after you if needed
@ -9,2 +9,3 @@
;; function to print error if environment variable 'HOSTNAME' is not set or if it's value is empty
;; function to throw error if environment variable 'HOSTNAME' is not set
; or if it's value is empty
don't split things across multiple lines
@ -11,3 +12,3 @@
;; FIXME-QA(Molese): Needs test
(define system-hostname-check (lambda ()
(if (not (system-hostname-set?))
(if (eq nil (getenv "HOSTNAME"))
(if (empty? (getenv "HOSTNAME"... ?