Skip to content

Commit 4753845

Browse files
committed
enable linting through pipe, got rid of "1.log" development stump
1 parent e3f8399 commit 4753845

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bash/force-level2.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ export -f get_parameter
9797

9898
function process_this_image(){
9999

100+
# dummy test to enable linting through pipe
101+
if [ $# -eq 1 ] && [ "$1" == "TEST" ]; then
102+
exit 0;
103+
fi
104+
100105
FILE_IMAGE="$1"
101106
FILE_PRM="$2"
102107
DIR_LOG="$3"
@@ -363,10 +368,11 @@ fi
363368
FILE_NPROC="$DIR_TEMP/cpu-$TIME"
364369
echo "$NPROC" > "$FILE_NPROC"
365370

371+
process_this_image "TEST" # dummy call to enable linting through pipe
372+
366373
echo "${QUEUE[*]}" | \
367374
$PARALLEL_EXE -j "$FILE_NPROC" --delay "$DELAY" --eta \
368375
process_this_image {} "$FILE_PRM" "$DIR_LOG" "$DIR_TEMP" "$TIMEOUT_ZIP" "$FILE_QUEUE"
369-
process_this_image 1 "$FILE_PRM" "$DIR_LOG" "$DIR_TEMP" "$TIMEOUT_ZIP" "$FILE_QUEUE"
370376

371377
rm "$FILE_NPROC"
372378

misc/force-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.12-dev:::2024-05-17_16:02:57
1+
3.7.12-dev:::2024-05-23_06:40:24

0 commit comments

Comments
 (0)