Skip to content

Commit

Permalink
(tue-env) fix error prints using the incorrect env name
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Sep 18, 2023
1 parent 187ac74 commit 643de00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/tue-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Purged environment directory of '$env'"""
then
local tue_env_dir
tue_env_dir=$(cat "$TUE_DIR"/user/envs/"$env")
cd "$tue_env_dir"/.env/targets || { echo -e "Targets directory '$tue_env_dir/.env/targets' (environment '$TUE_ENV') does not exist"; return 1; }
cd "${tue_env_dir}"/.env/targets || { echo -e "Targets directory '${tue_env_dir}/.env/targets' (environment '${env}') does not exist"; return 1; }
fi

elif [[ $cmd == "config" ]]
Expand Down Expand Up @@ -245,7 +245,7 @@ Purged environment directory of '$env'"""
then
local tue_env_dir
tue_env_dir=$(cat "$TUE_DIR"/user/envs/"$env")
cd "$tue_env_dir" || { echo -e "Environment directory '$tue_env_dir' (environment '$TUE_ENV') does not exist"; return 1; }
cd "${tue_env_dir}" || { echo -e "Environment directory '${tue_env_dir}' (environment '${env}') does not exist"; return 1; }
else
echo "[tue-env](cd) no enviroment set or provided"
return 1
Expand Down

0 comments on commit 643de00

Please sign in to comment.