From 4996e955e02108eadcb57a5cc1e181dd2c008734 Mon Sep 17 00:00:00 2001 From: Christo Kotze Date: Mon, 19 Feb 2018 22:18:59 +0400 Subject: [PATCH] Updated path splitting line Works in the console, but Travis doesn't like it. --- functions/utilities.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/utilities.zsh b/functions/utilities.zsh index 9f1ea53e..a539fc6e 100644 --- a/functions/utilities.zsh +++ b/functions/utilities.zsh @@ -234,7 +234,7 @@ function truncatePath() { # if the path is in the home folder, don't add a "/" to the start [[ $1 != "~"* ]] && trunc_path='/' || trunc_path='' # split the path into an array using "/" as the delimiter and remove "~/" - local paths=(${(s:/:)1}) + local paths=(${(s:/:)${1}}) # declare locals for the directory being tested and its length local test_dir test_dir_length # do the needed truncation