Skip to content

Commit

Permalink
fix: fix feature name in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phorcys420 committed Aug 8, 2024
1 parent b934a6e commit adacf4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/lib-common/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -euo pipefail

FEATURE_NAME="common"
LIBRARY_NAME="common"
FEATURE_NAME="lib-$LIBRARY_NAME"
echo "Activating feature '$FEATURE_NAME'"

source src/main.sh
Expand All @@ -15,8 +16,8 @@ VERSION=$(getFeatureVersion)
VERSION_PARTS=($(getVersionParts "$VERSION"))

# Define the installation directory for the current feature and the current feature version
FEATURE_DIR="$BASE_DIR/$FEATURE_NAME"
INSTALL_DIR="$FEATURE_DIR/$VERSION"
LIBRARY_DIR="$BASE_DIR/$LIBRARY_NAME"
INSTALL_DIR="$LIBRARY_DIR/$VERSION"

# Create directory for current feature version
echo "[$FEATURE_NAME] [+] Installing library to $INSTALL_DIR"
Expand All @@ -32,5 +33,5 @@ SUBFOLDERS=(

for SUBFOLDER in "${SUBFOLDERS[@]}"
do
ln --symbolic --force "$INSTALL_DIR" "$FEATURE_DIR/$SUBFOLDER"
ln --symbolic --force "$INSTALL_DIR" "$LIBRARY_DIR/$SUBFOLDER"
done
9 changes: 5 additions & 4 deletions src/lib-github/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

set -euo pipefail

FEATURE_NAME="github"
LIBRARY_NAME="github"
FEATURE_NAME="lib-$LIBRARY_NAME"
echo "Activating feature '$FEATURE_NAME'"

# Define the base directory where the feature libraries are stored
Expand All @@ -16,8 +17,8 @@ VERSION=$(getFeatureVersion)
VERSION_PARTS=($(getVersionParts "$VERSION"))

# Define the installation directory for the current feature and the current feature version
FEATURE_DIR="$BASE_DIR/$FEATURE_NAME"
INSTALL_DIR="$FEATURE_DIR/$VERSION"
LIBRARY_DIR="$BASE_DIR/$LIBRARY_NAME"
INSTALL_DIR="$LIBRARY_DIR/$VERSION"

# Create directory for current feature version
echo "[$FEATURE_NAME] [+] Installing library to $INSTALL_DIR"
Expand All @@ -33,5 +34,5 @@ SUBFOLDERS=(

for SUBFOLDER in "${SUBFOLDERS[@]}"
do
ln --symbolic --force "$INSTALL_DIR" "$FEATURE_DIR/$SUBFOLDER"
ln --symbolic --force "$INSTALL_DIR" "$LIBRARY_DIR/$SUBFOLDER"
done

0 comments on commit adacf4b

Please sign in to comment.