[Lunar-commits] <lunar> add link-check to 'exists'

Michael 'v4hn' Goerner v4hn at lunar-linux.org
Mon Aug 27 00:14:00 CEST 2012


commit 3df575c3f07c297bde3b49528d1971c60c324046
Author: Michael 'v4hn' Goerner <v4hn at lunar-linux.org>
Date: Sun, 26 Aug 2012 15:14:00 -0700
URL: https://github.com/lunar-linux/lunar/commit/3df575c3f07c297bde3b49528d1971c60c324046

add link-check to 'exists'
---
  libs/misc.lunar                                              +1/-1     
  1 files changed, 1 insertions (+), 1 deletions (-)

--- a/libs/misc.lunar
+++ b/libs/misc.lunar
@@ -123,7 +123,7 @@ exists() {
 	debug_msg "exists ($@)"
 	local ITEM
 	while read ITEM ; do
-		if [ -e "$ITEM" ] ; then
+		if [ -e "$ITEM" ] || [ -L "$ITEM" ]; then
 			echo "$ITEM"
 		fi
 	done




More information about the Lunar-commits mailing list