Skip to content

Commit 261cae4

Browse files
committed
src/functions/auxiliary.sh: Fix codestyle in shorten_path().
1 parent f8f9a5e commit 261cae4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/functions/auxiliary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ shorten_path(){
184184
if [[ "$local_path" == "$PWD/"* &&
185185
"$PWD" != "$HOME" ]]; then
186186
# E.g. '/home/zappex/.config/flux.ini' -> 'flux.ini' (if current directory is '/home/zappex/.config')
187-
local_path="${local_path/"$PWD/"/}"
187+
local local_path="${local_path/"$PWD/"/}"
188188
elif [[ "$local_path" == "$HOME"* ]]; then
189189
# E.g. '/home/zappex/.config/flux.ini' -> '~/.config/flux.ini' (if current directory is '/home/zappex')
190-
local_path="${local_path/"$HOME"/'~'}"
190+
local local_path="${local_path/"$HOME"/'~'}"
191191
fi
192192

193193
# Value will be printed in message from command substitution

0 commit comments

Comments
 (0)