6565
6666
6767# to check though:
68- diff -q <( tail -n 234 " $0 " | head -n 232 | shasum -a 384 -t -) <( tail -n 1 " $0 " ) || exit 70 ;
68+ diff -q <( tail -n 240 " $0 " | head -n 238 | shasum -a 384 -t -) <( tail -n 1 " $0 " ) || exit 70 ;
6969
7070ulimit -t 90
7171PATH=" /bin:/sbin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:${PATH} "
@@ -79,6 +79,7 @@ EXIT_CODE=0
7979
8080test -x " $( command -v grep) " || exit 126 ;
8181test -x " $( command -v curl) " || exit 126 ;
82+ test -x " $( command -v mkdir) " || exit 126 ;
8283hash -p ./.github/tool_shlock_helper.sh shlock || exit 255 ;
8384test -x " $( command -v shlock) " || exit 126 ;
8485test -x " $( command -v gpgv) " || exit 126 ;
@@ -241,6 +242,11 @@ elif [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
241242 printf " ::debug::%s\n" " Validated ds-cli.sh for DeepSource" ;
242243 chmod -v 751 ./ds-cli.sh || EXIT_CODE=77
243244 fi ;
245+
246+ if [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
247+ printf " ::debug::%s\n" " Creating ${BINDIR} directory for DeepSource" ;
248+ mkdir -v -m 755 " ${BINDIR} " || EXIT_CODE=66
249+ fi ;
244250
245251 if [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
246252 # ref: https://docs.deepsource.com/docs/analyzers-test-coverage#setup-test-coverage
@@ -265,7 +271,7 @@ elif [[ ( ${EXIT_CODE} -eq 0 ) ]] ; then
265271 fi ;
266272 else
267273 printf " ::debug::..=> %s\n" " Missing ${BINDIR} /deepsource CLI tool" ;
268- EXIT_CODE=125 ;
274+ EXIT_CODE=66 ;
269275 printf " ::debug::..=> %s\n" " Checking if ${BINDIR} is empty:" ;
270276 readonly BIN_FILES=$( ls -1 " ${BINDIR} " 2> /dev/null ; )
271277 printf " ::debug::..=> %s\n" " ${BIN_FILES} " ;
@@ -298,4 +304,4 @@ cleanup 2>/dev/null || rm -f "${LOCK_FILE}" 2>/dev/null > /dev/null || : ; wait
298304exit ${EXIT_CODE:- 255} ;
299305
300306# This file's code hash:
301- c7f8f4f1cf337ce97fe32916af5507aa252f7ec441eb6105fcf3fe32d5463994e8889539cff613f5dfff802324fb0bc0 -
307+ bee43a56d600679736436b75cc9957dd2b6c14045498772a4c5e919449a74088a48c155ff70072be0ae5a268aa854bfe -
0 commit comments