FPATH="$1"
TEST=`stat -c %F "$FPATH"`
if [ "$TEST" = "symbolic link" ]; then
FPATH=`stat -c %N "$FPATH" | cut -f3 -d '\`'`
FPATH=${FPATH%?}
fi
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.
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum