Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix value error
Browse files Browse the repository at this point in the history
  • Loading branch information
snwh committed May 21, 2018
1 parent 52a9598 commit 9904444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/install_functions
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function install_from_list() {
function install_flatpak_package() {
# echo_message header "Starting 'install_flatpak_package' function..."
# If package is not installed
if [[ $(flatpak list | grep ${3} &> /dev/null; echo $?) != 1 ]]; then
if [[ $(flatpak list | grep ${3} &> /dev/null; echo $?) != 0 ]]; then
echo_message info "${1} is not installed. Installing..."
if (whiptail \
--title "Install ${1}" \
Expand Down Expand Up @@ -155,7 +155,7 @@ function install_flatpak_package() {
function install_snap_package() {
# echo_message header "Starting 'install_snap_package' function..."
# If package is not installed
if [[ $(snap list | grep ${1} &> /dev/null; echo $?) != 1 ]]; then
if [[ $(snap list | grep ${2} &> /dev/null; echo $?) != 0 ]]; then
echo_message info "${1} is not installed. Installing..."
if (whiptail \
--title "Install ${1}" \
Expand Down

0 comments on commit 9904444

Please sign in to comment.