Skip to content

Commit d7addfd

Browse files
committed
refactor: repo directory log has first
1 parent f169c5c commit d7addfd

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

copier-template/.envrc.jinja

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,22 @@ fi
6060

6161

6262
#################
63+
# REPM
6364
# Bin script installation
6465
# The installation is done by cloning the repo to a well-known location.
6566
#################
67+
echo ""
68+
echo "Repo manager: "
6669
export REPM_PREFIX="REPM"
6770
REPM_DIR_VAR_NAME="${REPM_PREFIX}_${ORGANISATION_ENV_NAME}_DIR"
6871
export REPM_DIR
6972
REPM_DIR="${!REPM_DIR_VAR_NAME:-}"
7073
if [ "$REPM_DIR" != "" ]; then
71-
repm_echo_yellow "$REPM_DIR_VAR_NAME variable found with the value $REPM_DIR"
74+
echo " Repo Directory : $REPM_DIR (from var $REPM_DIR_VAR_NAME)"
7275
else
73-
REPM_DIR="$PWD/../repo-manager"
74-
repm_echo_yellow "$REPM_DIR_VAR_NAME variable not found. Value set to: $REPM_DIR"
76+
REPM_DIR=$(realpath "$PWD/../repo-manager")
77+
echo " Repo Directory : $REPM_DIR (default)"
7578
fi
76-
REPM_DIR=$(realpath "${REPM_DIR}")
7779
if [ ! -d "$REPM_DIR" ]; then
7880

7981
repm_echo_yellow "REPM_DIR ($REPM_DIR) does not exist."
@@ -91,13 +93,6 @@ fi
9193
# Exit if the repo was not installed
9294
if [ -d "$REPM_DIR" ]; then
9395

94-
#################
95-
# REPM
96-
#################
97-
echo ""
98-
echo "Repo manager: "
99-
echo " Repo Directory : $REPM_DIR"
100-
10196
#################
10297
# Bin
10398
#################

0 commit comments

Comments
 (0)