diff --git a/APP-MANAGER b/APP-MANAGER index 01de6a55b..552b271ff 100755 --- a/APP-MANAGER +++ b/APP-MANAGER @@ -276,6 +276,14 @@ function _am_security_check() { fi } +function _check_if_am_is_read_only() { + if [ $AMCLI == am ] 2>/dev/null; then + if [ -w /opt/am ]; then + echo -e " đŸ’€ERROR: /opt/am is read-only, consider using \"am --user\"" + fi + fi +} + # Function to check online connections (uses github.com by default, as the database and CLI itself are stored/hosted there) function _online_check() { if ! wget -q --tries=10 --timeout=20 --spider https://github.com; then