From 2c19c63a092f4045fdddc0f1d22322914f6106d0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 26 Feb 2025 10:19:34 -0700 Subject: [PATCH] Fix if statement, Ansible variable was `True` rather than `true`. --- tasks/general/acct_mgmt/users.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 6746e81..812f088 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -597,7 +597,7 @@ alias freeze="kill-system" alias system-killer="kill-system" function_update_sdks: | - if [[ "{{ coding }}" == "true" ]]; then + if [[ "$coding" == "true" ]]; then function update-sdks { echo -e "******* Update SDKs *******\n*** Android ***" yes | sdkmanager --update @@ -618,6 +618,11 @@ rc_common: | # Fixes "command not found" when using aliases within functions. shopt -s expand_aliases + + # Variables for conditionals + typeset -l coding + export coding="{{ coding }}" + {{ export_path_additions }} {{ alias_cp }} {{ alias_mv }}