Adding failcount script for competitive CLI

This commit is contained in:
DarkFeather 2018-12-11 17:42:00 -06:00
parent 30c6c5791b
commit deac12d010
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
LIST=bell bigorlittle compare-directories compress-all diff-args expand-all logged-shell standardize-folder sysinfo whatismyip worktrack LIST=bell bigorlittle compare-directories compress-all diff-args expand-all failcount logged-shell standardize-folder sysinfo whatismyip worktrack
LOCATION=${pkgdir}/usr/local/bin LOCATION=${pkgdir}/usr/local/bin
PERMISSION=0755 PERMISSION=0755
compile: compile:

5
Shared/failcount Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
/bin/bash --rcfile <(cat /etc/bashrc; echo '
export PS1="FAILCOUNT: \$failcount ""$PS1"
trap '\''export failcount=$(( $failcount + $? ))'\'' DEBUG
')