Skip to content

Commit

Permalink
Option -f: Show if the app is an AppImage or something else
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc authored Jan 24, 2024
1 parent b9d611c commit 438aba8
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -748,11 +748,16 @@ case "$1" in
cd $APPSPATH &&
APP=$(find -name 'remove' -printf "%h\n" 2>/dev/null | du -sh -- * | sort -rh | sed 's@.* @@')
SIZE=$(find -name 'remove' -printf "%h\n" 2>/dev/null | du -sh -- * | sort -rh)
echo "- APPNAME | SIZE " >> $AMPATH/.cache/files-args
echo "- ------- | ---- " >> $AMPATH/.cache/files-args
echo "- APPNAME | TYPE | SIZE " >> $AMPATH/.cache/files-args
echo "- ------- | ---- | ----" >> $AMPATH/.cache/files-args
for arg in $APP; do
for var in $arg; do
echo "$var $(echo "$SIZE" | grep $var | cut -f1 -d" " | sed 's/.$/ &/' | sed 's/$/iB/')" | sed 's/ / | /g' >> $AMPATH/.cache/files-args
if [ -z $(strings -d "./$var/$var" 2>/dev/null | grep -m 1 "AppImage") ] 2>/dev/null; then
echo "$var | Other | $(echo "$SIZE" | grep $var | cut -f1 -d" " | sed 's/.$/ &/' | sed 's/$/iB/')" >> $AMPATH/.cache/files-args
else
echo "$var | AppImage | $(echo "$SIZE" | grep $var | cut -f1 -d" " | sed 's/.$/ &/' | sed 's/$/iB/')" >> $AMPATH/.cache/files-args
fi

done
done
cat $AMPATH/.cache/files-args | column -t
Expand Down Expand Up @@ -2547,7 +2552,7 @@ case "$1" in

'version'|'-v'|'--version')

echo "5.6-2";;
echo "5.6.1";;

*) exec $AMCLIPATH ;;

Expand Down

0 comments on commit 438aba8

Please sign in to comment.