Skip to content

Commit

Permalink
chore: update check the package is installed or not
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Dec 25, 2023
1 parent 0981e1d commit 609bc53
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions shell-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,21 @@ for ((i=0;i<${#MODE_ENC[@]};i++)); do
}
done

command_exists openssl && command_exists ccrypt && command_exists gcrypt || {
error "Some programs or packages is not installed"
info "Please installed the programs and try again"
command_exists openssl || {
error "The program \`openssl' is not installed."
info "Please installed the program and try again."
exit 127
}

command_exists ccrypt || {
error "The program \`ccrypt' is not installed."
info "Please installed the program and try again."
exit 127
}

command_exists gcrypt || {
error "The program \`gcrypt' is not installed."
info "Please installed the program and try again."
exit 127
}

Expand Down

0 comments on commit 609bc53

Please sign in to comment.