The suggestion to follow links recursively until a valid name is found will fail for 'abrowser-3.0', which points directly to firefox-3.0. So an additional check of NAME=${NAME%%-3.0}} may be warranted.
The suggestion to follow links recursively until a valid name is found will fail for 'abrowser-3.0', which points directly to firefox-3.0. So an additional check of NAME=${NAME%%-3.0}} may be warranted.