diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-30 17:22:31 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-30 17:56:41 -0700 |
commit | ad1ad2a2e3200a2de050a5a7560c7c806122e880 (patch) | |
tree | 40bfdc4c360c2e76145a5405f7d7daf5c27438db /src/util.lisp | |
parent | 09c0a2a57629e8e348fa2a620fc16a98d65220ed (diff) | |
download | consfigurator-ad1ad2a2e3200a2de050a5a7560c7c806122e880.tar.gz |
implement updating the newly installed system's fstab
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |