Skip to content

Commit

Permalink
Fix deleting executable
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiasG19 committed Sep 24, 2023
1 parent d57772e commit 17cfa13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions AppToGrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17cfa13

Please sign in to comment.