Skip to content

Commit

Permalink
Merge pull request #7 from azohra/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Azbagheri authored Nov 1, 2019
2 parents 333ca8a + 645d35c commit 8442bf5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ logging_mode="$2"
execution_mode="$3"
my_dir=$(pwd)
VERSION="0.1.0"
status_code="0"

process_input(){
if [ -n "$execution_mode" ]; then
my_dir=./test_data
my_dir="./test_data"
fi

if [ -n "$input_paths" ]; then
status_code=0
for path in $(echo "$input_paths" | tr "," "\n"); do
if [ -d "$path" ]; then
scan_all "$path"
else
scan_file "$path"
fi
done
exit $status_code
if [ -z "$execution_mode" ]; then exit $status_code; fi
else
scan_all "$my_dir"
if [ -z "$execution_mode" ]; then exit $status_code; fi
fi
}

Expand Down

0 comments on commit 8442bf5

Please # to comment.