From 17cfa130dc32a69756d52c0b625b9575c5768e20 Mon Sep 17 00:00:00 2001 From: MatiasG19 Date: Sun, 24 Sep 2023 12:53:25 +0200 Subject: [PATCH] Fix deleting executable --- AppToGrid.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AppToGrid.sh b/AppToGrid.sh index 1621bb7..4c3fe9a 100755 --- a/AppToGrid.sh +++ b/AppToGrid.sh @@ -90,15 +90,16 @@ then if grep -q "Name=$appName" "$desktopEntry" then exeName="$(basename "$desktopEntry" ".desktop")" + exeNameWithExtension="$(basename "$desktopEntry")" break fi done filesFound=() - if [ -f "$BIN_DIR$exeName" ] + if [ -f "$BIN_DIR$exeNameWithExtension" ] then - echo "Executable $exeName found in $BIN_DIR." - filesFound+=("$BIN_DIR$exeName") + echo "Executable $exeNameWithExtension found in $BIN_DIR." + filesFound+=("$BIN_DIR$exeNameWithExtension") fi if [ -f "$DESKTOP_DIR$exeName.desktop" ] then