Skip to content

Commit 6c09ada

Browse files
committed
UPDATED: add_shebang tool update
1 parent 553da69 commit 6c09ada

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/tools/add_functions_shebang.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ main()
1717
{
1818
CUSTOMIZER_PROJECT_FOLDER="$(cd "$(dirname "$(realpath "$0")")/../.." &>/dev/null && pwd)"
1919

20-
DIR="${CUSTOMIZER_PROJECT_FOLDER}/src/core"
21-
source "${DIR}/data_features.sh"
20+
source "${CUSTOMIZER_PROJECT_FOLDER}/data/core/common_data.sh"
2221
SHE_BANG='#!/usr/bin/env bash'
2322

2423
for key_name in ${feature_keynames[@]}; do
25-
26-
if [ ! -d "${CUSTOMIZER_PROJECT_FOLDER}/src/features/${key_name}" ]; then
27-
continue
28-
fi
29-
for file_path in "${CUSTOMIZER_PROJECT_FOLDER}/src/features/${key_name}/"*; do
24+
for file_path in "${CUSTOMIZER_PROJECT_FOLDER}/data/features/${key_name}/"*; do
3025

3126
if [ ! "$(echo "${file_path}" | rev | cut -d '.' -f1 | rev )" == "sh" ]; then
3227
continue

0 commit comments

Comments
 (0)