Remove unneeded local keyword
This commit is contained in:
parent
8c69a27543
commit
5b52a1d4d0
@ -542,7 +542,7 @@ _lp_shorten_path()
|
|||||||
ret="${p}"
|
ret="${p}"
|
||||||
elif [[ ${LP_PATH_KEEP} == 0 ]]; then
|
elif [[ ${LP_PATH_KEEP} == 0 ]]; then
|
||||||
# len is over max len, show as much of the tail as is allowed
|
# len is over max len, show as much of the tail as is allowed
|
||||||
local ret="${p##*/}" # show at least complete current directory
|
ret="${p##*/}" # show at least complete current directory
|
||||||
p="${p:0:${#p} - ${#ret}}"
|
p="${p:0:${#p} - ${#ret}}"
|
||||||
ret="${mask}${p:${#p} - (${max_len} - ${#ret} - ${#mask})}${ret}"
|
ret="${mask}${p:${#p} - (${max_len} - ${#ret} - ${#mask})}${ret}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user