Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
style: replace 'SED' with 'TEMPLATE' in a template file
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jun 13, 2021
1 parent cb9e406 commit b54ebf9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions actions/util-Bash-generate-bins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ realpath.absolute() {
# distribution's package manager, the 'lib' files are in an extra subfolder
# compared to an installation through Git (ex. Basher)
realpath.location "${BASH_SOURCE[0]}"
if [ -d "$REPLY"/../lib/SED_PACKAGE_DIR ]; then
PROGRAM_LIB_DIR="$REPLY/../lib/SED_PACKAGE_DIR"
if [ -d "$REPLY"/../lib/TEMPLATE_PACKAGE_DIR ]; then
PROGRAM_LIB_DIR="$REPLY/../lib/TEMPLATE_PACKAGE_DIR"
elif [ -d "$REPLY"/../lib ]; then
PROGRAM_LIB_DIR="$REPLY/../lib"
else
Expand All @@ -80,10 +80,10 @@ else
fi
# shellcheck disable=SC1091
source "$PROGRAM_LIB_DIR/cmd/SED_BIN_FILE"
source "$PROGRAM_LIB_DIR/cmd/TEMPLATE_BIN_FILE"
EOF
sed -i -e "s/SED_PACKAGE_DIR/$distroPackageName/g" "./pkg/bin/$fileName"
sed -i -e "s/SED_BIN_FILE/$fileName.sh/g" "./pkg/bin/$fileName"
sed -i -e "s/TEMPLATE_PACKAGE_DIR/$distroPackageName/g" "./pkg/bin/$fileName"
sed -i -e "s/TEMPLATE_BIN_FILE/$fileName.sh/g" "./pkg/bin/$fileName"

done
}
Expand Down

0 comments on commit b54ebf9

Please sign in to comment.