From deac12d010f7eabe7ca8c4204e8e6fc83165fbb6 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Tue, 11 Dec 2018 17:42:00 -0600 Subject: [PATCH] Adding failcount script for competitive CLI --- Shared/Makefile | 2 +- Shared/failcount | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 Shared/failcount 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 +')