From 9f69f9a9546d80cff7aa43fcd7d45965ca37b02f Mon Sep 17 00:00:00 2001 From: Libretto <> Date: Sun, 21 Apr 2024 22:41:19 +0200 Subject: [PATCH] Build deps: Unset result variable before use --- automation_tools/install_dependencies.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automation_tools/install_dependencies.sh b/automation_tools/install_dependencies.sh index 66edb4a6..0243fc15 100755 --- a/automation_tools/install_dependencies.sh +++ b/automation_tools/install_dependencies.sh @@ -1,6 +1,8 @@ #!/bin/bash # This script is installing the required dependencies to correctly run the pipeline and build the flatpak +unset result + # rpm-ostree must be checked before dnf because a dnf (wrapper) command also works on rpm-ostree distros (not what we want) for pkg_manager in apt pacman rpm-ostree dnf; do command -v "$pkg_manager" &> /dev/null && result="$pkg_manager" && break