Skip to content

Commit

Permalink
fix: strip right slash from string-only path
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Jan 2, 2024
1 parent 3e967d0 commit 4f48e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ Also resolves symlinks, if relevant.
(defgeneric path-without-slash (p))

(defmethod path-without-slash ((p string))
p)
(string-right-trim "/" p))

(defmethod path-without-slash ((p pathname))
(string-right-trim "/" (namestring p)))
(path-without-slash (namestring p)))

(defun sync-dock (apps)
"Every element must be a pathname to a real directory, not a symlink"
Expand Down

0 comments on commit 4f48e20

Please sign in to comment.