From 74a38a5983cd45a058e4de2244014b87aa2a1b1c Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Thu, 29 Oct 2020 23:36:47 -0500
Subject: [PATCH] tmp: Fix invalid use of tilde expansion

---
 tmp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmp b/tmp
index fca2478..4dcb2c4 100755
--- a/tmp
+++ b/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