Skip to content

Commit

Permalink
Update APP-MANAGER: check and create the $AMPATH directory...
Browse files Browse the repository at this point in the history
... if it does not exist.

See #466 (comment)
  • Loading branch information
ivan-hc authored Apr 24, 2024
1 parent 77656cb commit 8fad10e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions APP-MANAGER
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8fad10e

Please sign in to comment.