ambrevar/shell: Remove spurious second value from ipv4.

master
Pierre Neidhardt 2021-01-13 19:56:30 +01:00
parent ab9717074a
commit b9c95f0a8a
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ different Btrfs subvolumes."
(defun ipv4 (interface)
(when (string= "inet" (first (third interface)))
(ppcre:regex-replace "/.*" (second (third interface)) "")))
(values (ppcre:regex-replace "/.*" (second (third interface)) ""))))
;; TODO: Make class for interfaces? Can iolib / usocket be helpful here?
(defun interfaces (&optional interface)