-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24cd99c
commit 0e4cd88
Showing
4 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ YELLOW='\033[0;33m' | |
BLUE='\033[0;34m' | ||
RED='\033[0;31m' | ||
|
||
npm i -g [email protected].6 | ||
npm i -g [email protected].7 | ||
|
||
declare -a FIND_CALL | ||
declare -a COMMAND_DIRS COMMAND_FILES | ||
|
@@ -142,7 +142,7 @@ check_additional_files () { | |
|
||
} | ||
|
||
if [ -z "$8" ]; then | ||
if [ -z "$4" ]; then | ||
FOLDERS="." | ||
else | ||
handle_dirs | ||
|
@@ -167,16 +167,23 @@ if [ "$CHECK_MODIFIED_FILES" = "yes" ]; then | |
|
||
for i in "${FILE_ARRAY[@]}" | ||
do | ||
echo "------------------------------> filename is ${i}" | ||
if [ "${i##*.}" == "${FILE_EXTENSION#.}" ]; then | ||
FIND_CALL+=("${i}") | ||
COMMAND="${FIND_CALL[*]}" | ||
$COMMAND &>> error.txt || true | ||
unset 'FIND_CALL[${#FIND_CALL[@]}-1]' | ||
echo "------------------------------> File extension match" | ||
echo "------------------------------> filename: ${i##*/}" | ||
if [ $(find ${FOLDERS} -name "${i##*/}" ) ]; then | ||
echo "------------------------------> folders is ${FOLDERS}" | ||
FIND_CALL+=("${i}") | ||
COMMAND="${FIND_CALL[*]}" | ||
echo "------------------------------> Command is ${COMMAND}" | ||
$COMMAND &>> error.txt || true | ||
unset 'FIND_CALL[${#FIND_CALL[@]}-1]' | ||
fi | ||
fi | ||
done | ||
|
||
check_additional_files | ||
|
||
check_errors | ||
|
||
else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters