Adding failcount script for competitive CLI
This commit is contained in:
parent
30c6c5791b
commit
deac12d010
@ -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
5
Shared/failcount
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
/bin/bash --rcfile <(cat /etc/bashrc; echo '
|
||||||
|
export PS1="FAILCOUNT: \$failcount ""$PS1"
|
||||||
|
trap '\''export failcount=$(( $failcount + $? ))'\'' DEBUG
|
||||||
|
')
|
Loading…
Reference in New Issue
Block a user