You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update APP-MANAGER
- add option "reinstall"
- add a message in "-s" to suggest using the new "reinstall" option, it will appear only if there are scripts with modifications
* Update install.am
- add new option "reinstall" to remove and reinstall the app
- option "reinstall", add messages
* Update README.md
printf" ◆ %b%b\033[0m has changed, you may need to reinstall it, see\n https://github.com/ivan-hc/AM/blob/main/programs/%b/%b\n""${RED}""$scriptname""$ARCH""$scriptname"
879
+
to_reinstall_true=1
879
880
fi
880
881
else
881
882
if curl --output /dev/null --silent --head --fail "$APPSDB"/"$arg"1>/dev/null;then
[ -n"$to_reinstall_true" ] &&printf"\n To fix the above, just run \"%b%b reinstall\033[0m\", without arguments\n""${Green}""$AMCLI"
889
891
}
890
892
891
893
_sync_appimages_list() {
@@ -1235,7 +1237,8 @@ case "$1" in
1235
1237
'download'|'-d'|\
1236
1238
'extra'|'-e'|\
1237
1239
'install'|'-i'|'-ias'|\
1238
-
'install-appimage'|'-ia')
1240
+
'install-appimage'|'-ia'|\
1241
+
'reinstall')
1239
1242
MODULE="install.am"
1240
1243
_online_check
1241
1244
[ "$CLI"= am ] && [ -f"$APPMANCONFIG"/appman-mode ] &&printf"%b""$APPMAN_MSG"
@@ -1457,6 +1460,12 @@ case "$1" in
1457
1460
1458
1461
Description: Search for keywords in the list of available applications, add the \"--appimages\" option to list only the AppImages or add \"--pkg\" to list multiple programs at once. The \"--all\" flag allows you to consult the set of all supported databases.
1459
1462
1463
+
${Gold}reinstall\033[0m
1464
+
1465
+
${LightBlue}$AMCLI reinstall\033[0m
1466
+
1467
+
Description: Reinstall only programs whose installation script has been modified in AM's online database.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -522,6 +522,15 @@ Overwrite apps with snapshots saved previously (see "`-b`").
522
522
523
523
Search for keywords in the list of available applications, add the "`--appimages`" option to list only the AppImages or add "`--pkg`" to list multiple programs at once. The "`--all`" flag allows you to consult the set of all supported databases.
if [ "$AMCLI"="am" ] &&!echo"$argpath"| grep -q "^/opt";then
610
+
"$AMCLIPATH_ORIGIN" -i --user "$scriptname"
611
+
else
612
+
"$AMCLIPATH_ORIGIN" -i "$scriptname"
613
+
fi
614
+
fi
615
+
fi
616
+
fi
617
+
done
618
+
[ -n"$reinstall_true" ] &&printf" App removal and reinstallation complete! \n%b\n""$DIVIDING_LINE"||printf" Nothing to do here! \n%b\n""$DIVIDING_LINE"
0 commit comments