Skip to content
This repository
Browse code

script/update-user-apps.sh: replace chase usage for realpath

  • Loading branch information...
commit b69d92e983c55e4156c550dd090a0991a0b60a67 1 parent 9725cfa
Petr Gajdůšek authored January 03, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  scripts/update-user-apps.sh
4  scripts/update-user-apps.sh
@@ -51,7 +51,7 @@ while read file; do
51 51
 	trim file
52 52
 	[ -z "$file" ] && continue
53 53
 	[ -x "$file" ] || continue; 
54  
-	real="$(chase "$file")"; 
  54
+	real="$(readlink -e "$file")"; 
55 55
 	[ "$?" != 0 ] && continue; 
56 56
 	[ -z "$real" ] && continue;
57 57
 	[ -x "$real" ] || continue; 
@@ -112,7 +112,7 @@ echo -n "$DESKTOP_DIRS" | xargs -d: -n1 -I '{}' find "{}" -type f -name '*.deskt
112 112
 				[ "$DEBUG" = "yes" ] && echo "IGNORED (exec file not found): exec: '$exec'" >>$DEBUG_LOG
113 113
 				continue
114 114
 			fi
115  
-			chased_exec="$(chase "$real_exec" 2>/dev/null)"
  115
+			chased_exec="$(readlink -e "$real_exec" 2>/dev/null)"
116 116
 			if [ -z "$chased_exec" ]; then
117 117
 				[ "$DEBUG" = "yes" ] && echo "IGNORED (exec is broken symbolic link?): real exec: '$real_exec' exec: '$exec'" >>$DEBUG_LOG
118 118
 				continue

0 notes on commit b69d92e

Please sign in to comment.
Something went wrong with that request. Please try again.