aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-19 21:18:59 +0300
committerChristo Kotze <onaforeignshore@hotmail.co.uk>2018-02-19 21:18:59 +0300
commit4996e955e02108eadcb57a5cc1e181dd2c008734 (patch)
tree704526c5c11ae7a8f13a933fd983b21d03082318 /functions
parenta699393d58c1e9228dadd95e42ccf54f1b687dd2 (diff)
Updated path splitting line
Works in the console, but Travis doesn't like it.
Diffstat (limited to 'functions')
-rw-r--r--functions/utilities.zsh2
1 files changed, 1 insertions, 1 deletions
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