Skip to content

Commit fcc7f5b

Browse files
committed
Replace tilde by \$HOME
tilde does not expand in double quotes
1 parent 4c68fe0 commit fcc7f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

post-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
url="$(git config --local remote.${remote}.url)"
3030

31-
configpath="${XDG_CONFIG_HOME:-~/.config}/git/templates/git-clone-init"
31+
configpath="${XDG_CONFIG_HOME:-${HOME}/.config}/git/templates/git-clone-init"
3232
if [[ ! -f "$configpath" ]]; then
3333
cat << INPUT > "$configpath"
3434
#!/bin/bash

0 commit comments

Comments
 (0)