tmp: Fix invalid use of tilde expansion
This commit is contained in:
parent
d0846d2b5b
commit
74a38a5983
4
tmp
4
tmp
@ -53,12 +53,12 @@ done
|
||||
# Copy in template directory
|
||||
if [ -n "$1" ]; then
|
||||
# Source in XDG dirs, if they exist
|
||||
userdirs="${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs"
|
||||
userdirs="${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs"
|
||||
if [ -f "$userdirs" ]; then
|
||||
source "$userdirs"
|
||||
fi
|
||||
unset userdirs
|
||||
copydir="${XDG_TEMPLATES_DIR:-~/Templates}/.tmp/$1"
|
||||
copydir="${XDG_TEMPLATES_DIR:-$HOME/Templates}/.tmp/$1"
|
||||
if ! [ -d "$copydir" ]; then
|
||||
log "Could not find template directory \"$copydir\""
|
||||
exit 3
|
||||
|
Loading…
Reference in New Issue
Block a user