Skip to content

Commit

Permalink
Merge pull request #1043 from ivan-hc/main
Browse files Browse the repository at this point in the history
Update install.am: fix AppImage list (option `-ia`)
  • Loading branch information
ivan-hc authored Oct 28, 2024
2 parents 93c2e8a + eb41b76 commit f654e3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/install.am
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ _ending_the_installation() {
if [ -f "${LASTDIRPATH}"/remove ]; then
if test -d "${LASTDIRPATH}"/tmp; then
echo " 💀 ERROR DURING INSTALLATION, REMOVED $APPNAME!"
$AMCLIPATH -R "$LASTDIR" 1>/dev/null
$SUDOCMD "$APPSPATH/$LASTDIR/remove" 1>/dev/null
elif test -f "$APPSPATH/$LASTDIR/version" && [ -z "$(cat "$APPSPATH/$LASTDIR/version")" ]; then
echo " 💀 ERROR DURING INSTALLATION, REMOVED $APPNAME!"
$AMCLIPATH -R "$LASTDIR" 1> /dev/null
$SUDOCMD "$APPSPATH/$LASTDIR/remove" 1> /dev/null
else
APPSIZE=$(du -sm "${LASTDIRPATH}" | awk '{print $1}' )
LASTDIRNAME=$(echo "\"$LASTDIR\"" | tr '[:lower:]' '[:upper:]')
Expand Down Expand Up @@ -393,7 +393,7 @@ case "$1" in
rm -f "$AMCACHEDIR"/install-args
ARGS="$(echo "$@" | cut -f2- -d ' ' | tr ' ' '\n' | grep -v -- "--")"
fi
APPIMAGE_NAMES=$(curl -Ls https://portable-linux-apps.github.io/appimages.md | tr '/)' '\n' | grep -i ".md$" | uniq | sed 's/.md$//g')
APPIMAGE_NAMES=$(curl -Ls https://portable-linux-apps.github.io/appimages.md | tr '/)' '\n' | grep -i ".md$" | uniq | sed 's/.md$//g' | grep -v "\[")
rm -f "$AMCACHEDIR/$ARCH-appimages"
for appimage in $APPIMAGE_NAMES; do
grep "$appimage :" "$AMDATADIR/$ARCH-apps" >> "$AMCACHEDIR/$ARCH-appimages" &
Expand Down

0 comments on commit f654e3c

Please sign in to comment.