Skip to content

Commit

Permalink
Update files.am: Appimage name detection wrong
Browse files Browse the repository at this point in the history
...according with #818
  • Loading branch information
ivan-hc authored Aug 13, 2024
1 parent b692958 commit 368f2fa
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions modules/files.am
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ _files_if_script() {
_files_if_appimage() {
if ! echo "$string" | grep 'AppImages require FUSE to run' >/dev/null 2>&1; then
if grep "SANDBOXDIR" "$FILE" >/dev/null 2>&1; then
echo "$arg | appimage3🔒" >> "$AMCACHEDIR"/files-type
echo "$arg | appimage🔒" >> "$AMCACHEDIR"/files-type
else
echo "$arg | appimage3" >> "$AMCACHEDIR"/files-type
echo "$arg | appimage" >> "$AMCACHEDIR"/files-type
fi
else
if grep "SANDBOXDIR" "$FILE" >/dev/null 2>&1; then
echo "$arg | appimage2🔒" >> "$AMCACHEDIR"/files-type
echo "$arg | appimage🔒*" >> "$AMCACHEDIR"/files-type
else
echo "$arg | appimage2" >> "$AMCACHEDIR"/files-type
echo "$arg | appimage*" >> "$AMCACHEDIR"/files-type
fi
fi
}
Expand Down Expand Up @@ -140,13 +140,8 @@ _files_show_only_number() {
}

_files_appimage_type_notes() {
if grep -q "appimage" "$AMCACHEDIR"/files*; then
if grep -q "appimage2" "$AMCACHEDIR"/files*; then
printf " *appimage2 needs libfuse2 and fusermount installed\n"
fi
if grep -q "appimage3" "$AMCACHEDIR"/files*; then
printf " *appimage3 does not need libfuse but needs fusermount3 or higher\n"
fi
if grep -qe "appimage\*\|appimage🔒\*" "$AMCACHEDIR"/files*; then
printf " *has dependency to EOL libfuse2 library, please ask the creator to update\n"
printf "\n"
fi
}
Expand Down

0 comments on commit 368f2fa

Please sign in to comment.