diff --git a/pkg/deb/prerm b/pkg/deb/prerm index d39cc86c8acbc6f8dcf38a59edb5a96f001f1eea..61c613bccf64209c83d2369ce55e96f510682d21 100755 --- a/pkg/deb/prerm +++ b/pkg/deb/prerm @@ -2,7 +2,7 @@ # Unlink the ffs alias if it links to ffsend if [[ -L /usr/bin/ffs ]] \ - && [[ $(ls -l /usr/bin/ffs | sed -e 's/.* -> //') == "/usr/bin/ffsend" ]]; \ + && [[ $(realpath /usr/bin/ffs) == "/usr/bin/ffsend" ]]; \ then echo "Removing ffs alias for ffsend..." unlink /usr/bin/ffs