From 00020913f1f600d457eead2fe53ba38bf685b86a Mon Sep 17 00:00:00 2001
From: Andri Joos <andri@joos.io>
Date: Fri, 20 Dec 2024 22:42:32 +0100
Subject: [PATCH] fix permission errors

---
 install.sh | 2 +-
 setup.sh   | 2 +-
 update.sh  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/install.sh b/install.sh
index 039bd79..bec815c 100644
--- a/install.sh
+++ b/install.sh
@@ -232,7 +232,7 @@ main() {
     mainline_kernels="${mainline_kernels//','/' '}"
     
     # Install packages using ansible
-    $HELPER_SCRIPTS_DIR/install_ansible.sh
+    bash $HELPER_SCRIPTS_DIR/install_ansible.sh
     ansible-playbook "${INSTALLER_DIR}/playbooks/install_packages.yaml" \
         --extra-vars "apt_packages='$apt_packages' snap_packages='$snap_packages' flatpak_packages='$flatpak_packages' raw_packages='$raw_packages' mainline_kernels='$mainline_kernels' user_groups='$user_groups' autostart_applications='$autostart_applications'" \
         --inventory "${INSTALLER_DIR}/ansible_inventory.ini" \
diff --git a/setup.sh b/setup.sh
index 12a82af..6e82078 100644
--- a/setup.sh
+++ b/setup.sh
@@ -60,7 +60,7 @@ main() {
         additional_ansible_args+=('--ask-become-pass')
     fi
 
-    $HELPER_SCRIPTS_DIR/install_ansible.sh
+    bash $HELPER_SCRIPTS_DIR/install_ansible.sh
     ansible-playbook "${INSTALLER_DIR}/playbooks/setup.yaml" \
         --extra-vars "dconf_config_path='$dconf_config' vscode_config_path='$vscode_config_path' vscode_extensions_path='$vscode_extensions_path' swap_sizes='$swap_sizes' git_config_path='$git_config_path'" \
         --inventory "${INSTALLER_DIR}/ansible_inventory.ini" \
diff --git a/update.sh b/update.sh
index c346a42..ac4dc41 100644
--- a/update.sh
+++ b/update.sh
@@ -71,7 +71,7 @@ main() {
     update_package_managers="${update_package_managers//|/' '}"
 
     # Update packages using ansible
-    $HELPER_SCRIPTS_DIR/install_ansible.sh
+    bash $HELPER_SCRIPTS_DIR/install_ansible.sh
     ansible-playbook "${INSTALLER_DIR}/playbooks/update_packages.yaml" \
         --extra-vars "package_managers='$update_package_managers'" \
         --inventory "${INSTALLER_DIR}/ansible_inventory.ini" \
-- 
GitLab