Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBoleac committed Nov 18, 2024
1 parent e583d6e commit 976fdda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bin/install_softwares.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ is_installed() {
if command -v "$cmd" &> /dev/null; then
log_message "INFO" "$cmd is already installed"
return 0
fi


# Check if the package is installed via APT
if dpkg -l | grep -qw "$cmd"; then
elif dpkg -l | grep -qw "$cmd"; then
log_message "INFO" "$cmd is already installed via APT"
return 0
fi


# Check if the package is installed via Snap
if snap list | grep -qw "$cmd"; then
elif snap list | grep -qw "$cmd"; then
log_message "INFO" "$cmd is already installed via Snap"
return 0
fi
Expand Down Expand Up @@ -322,4 +322,4 @@ main() {

}

main "$@"
main $*
2 changes: 1 addition & 1 deletion run_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ case $choice in

help_message_install_software
read -p "Input: " flags

echo "You chose: $flags"
# Pass the flags to the install_softwares.sh script
./bin/install_softwares.sh "$flags"
;;
Expand Down

0 comments on commit 976fdda

Please sign in to comment.