Skip to content

Commit

Permalink
refactor: check_dependencies function of install v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
StafLoker committed Jan 2, 2025
1 parent 7449953 commit f340195
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install_version/v1.3/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ check_dependencies() {
for cmd in curl wget sed tar jq; do
if ! command -v $cmd &>/dev/null; then
log_error "$cmd is not installed. Please install it and try again."
exit 1
return 1
fi
done
return 0
}

main() {
log_success "Installing ddns-porkbun-script version $VERSION..."

check_dependencies
if ! check_dependencies; then
exit 1
fi

# Define the installation directory as the 'ddns-porkbun-script' folder in the user's home directory
install_dir="$HOME/ddns-porkbun-script"
Expand Down

0 comments on commit f340195

Please sign in to comment.