TEST=`stat -c %F "$FPATH"`
if [ "$TEST" = "symbolic link" ]; then
FPATH=`stat -c %N "$FPATH" | cut -f3 -d '\`'`
This is exactly the solution to something i am currently working on. The LazY Puppy Run-Script-GUI (Starter) shows only symbolic links to the Run-Scripts in a different directory. I do use this now to remove these symbolic links and its Run-Scripts (including the directory) from within the Run-Script-GUI.