diff --git a/Shared/Makefile b/Shared/Makefile index 34755c2..950cdde 100644 --- a/Shared/Makefile +++ b/Shared/Makefile @@ -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 PERMISSION=0755 compile: diff --git a/Shared/failcount b/Shared/failcount new file mode 100755 index 0000000..ac2548d --- /dev/null +++ b/Shared/failcount @@ -0,0 +1,5 @@ +#!/bin/bash +/bin/bash --rcfile <(cat /etc/bashrc; echo ' +export PS1="FAILCOUNT: \$failcount ""$PS1" +trap '\''export failcount=$(( $failcount + $? ))'\'' DEBUG +')