From ad1ad2a2e3200a2de050a5a7560c7c806122e880 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 30 Apr 2021 17:22:31 -0700 Subject: implement updating the newly installed system's fstab Signed-off-by: Sean Whitton --- src/util.lisp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.lisp') diff --git a/src/util.lisp b/src/util.lisp index a109720..d9a6e2c 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -149,6 +149,11 @@ one solution is to convert your property to a :LISP property." (namestring (enough-pathname pathname (pathname-directory-pathname pathname)))) +(defun drop-trailing-slash (namestring) + (if (string-suffix-p namestring "/") + (subseq namestring 0 (1- (length namestring))) + namestring)) + (defmacro quote-nonselfeval (x) (once-only (x) `(if (member (type-of ,x) '(cons symbol)) -- cgit v1.2.3