Skip to content

Commit ad47438

Browse files
check dependencies upfront
1 parent 957eeae commit ad47438

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kanban

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
#
5555
# You should have received a copy of the GNU Affero General Public License
5656
# along with this program. If not, see <http://www.gnu.org/licenses/>.
57+
deps="tput column pr gawk"
58+
for dep in $deps; do which $dep &>/dev/null || { echo "$dep-cmd not installed..aborting (maybe install coreutils util-linux pkgs?)"; exit 1; }; done
5759
BOX=(┌ ─ ┐ └ ┘ │ ┤ ┴ ┬ ├ ┼)
5860
BAR=(▁ ▂ ▃ ▄ ▅ ▆ ▆ ▇ ▇ '' '')
5961
COL1="\033[0m"
@@ -118,6 +120,7 @@ createconfig(){
118120
}
119121
[[ ! -d ~/.kanban ]] && mkdir ~/.kanban
120122
echo "$config_example" > ~/$FILE_CONF
123+
touch ~/$FILE_CSV
121124
}
122125

123126
tags(){

0 commit comments

Comments
 (0)