Permalink
Browse files

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

  • Loading branch information...
gajdusek committed Jan 3, 2013
1 parent 9725cfa commit b69d92e983c55e4156c550dd090a0991a0b60a67
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/update-user-apps.sh
@@ -51,7 +51,7 @@ while read file; do
trim file
[ -z "$file" ] && continue
[ -x "$file" ] || continue;
- real="$(chase "$file")";
+ real="$(readlink -e "$file")";
[ "$?" != 0 ] && continue;
[ -z "$real" ] && continue;
[ -x "$real" ] || continue;
@@ -112,7 +112,7 @@ echo -n "$DESKTOP_DIRS" | xargs -d: -n1 -I '{}' find "{}" -type f -name '*.deskt
[ "$DEBUG" = "yes" ] && echo "IGNORED (exec file not found): exec: '$exec'" >>$DEBUG_LOG
continue
fi
- chased_exec="$(chase "$real_exec" 2>/dev/null)"
+ chased_exec="$(readlink -e "$real_exec" 2>/dev/null)"
if [ -z "$chased_exec" ]; then
[ "$DEBUG" = "yes" ] && echo "IGNORED (exec is broken symbolic link?): real exec: '$real_exec' exec: '$exec'" >>$DEBUG_LOG
continue

0 comments on commit b69d92e

Please sign in to comment.