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
|
# Copy in template directory
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
# Source in XDG dirs, if they exist
|
# 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
|
if [ -f "$userdirs" ]; then
|
||||||
source "$userdirs"
|
source "$userdirs"
|
||||||
fi
|
fi
|
||||||
unset userdirs
|
unset userdirs
|
||||||
copydir="${XDG_TEMPLATES_DIR:-~/Templates}/.tmp/$1"
|
copydir="${XDG_TEMPLATES_DIR:-$HOME/Templates}/.tmp/$1"
|
||||||
if ! [ -d "$copydir" ]; then
|
if ! [ -d "$copydir" ]; then
|
||||||
log "Could not find template directory \"$copydir\""
|
log "Could not find template directory \"$copydir\""
|
||||||
exit 3
|
exit 3
|
||||||
|
Loading…
Reference in New Issue
Block a user