diff --git a/APP-MANAGER b/APP-MANAGER index 7be50a25f..e7ebd2aa1 100644 --- a/APP-MANAGER +++ b/APP-MANAGER @@ -115,6 +115,12 @@ else _appman fi +# Check and create the $AMPATH directory if it does not exist +if [ ! -d "$AMPATH" ]; then + $SUDOCOMMAND mkdir -p "$AMPATH" +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 echo -e "\n $AMCLI is offline, please check your internet connection and try again\n"