From 9de30b97b10a2a6493956fabeb9578e74e59e525 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Tue, 11 Apr 2017 13:15:10 -0500 Subject: [PATCH] Remove is-true function that was only being used in the `git` and `git-info` modules to check the output of `git rev-parse --is-inside-work-tree`. The code depending on this function was already changed. Closes #163 --- modules/git/functions/is-true | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 modules/git/functions/is-true diff --git a/modules/git/functions/is-true b/modules/git/functions/is-true deleted file mode 100644 index 41d9fca..0000000 --- a/modules/git/functions/is-true +++ /dev/null @@ -1,3 +0,0 @@ -# Checks a boolean variable for "true". -# Case insensitive: "1", "y", "yes", "t", "true", "o", and "on". -[[ -n ${1} && ${1} == (1|[Yy]([Ee][Ss]|)|[Tt]([Rr][Uu][Ee]|)|[Oo]([Nn]|)) ]]