From 5b0c1db73df7054e701a177cb83704b907597bed Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Mon, 8 Mar 2021 18:50:10 +0000 Subject: [PATCH] install.sh Support single leading tilde in prefix (without using eval) --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 597e3ee..c18ca85 100755 --- a/install.sh +++ b/install.sh @@ -46,6 +46,9 @@ while true; do -p|--prefix) shift PREFIX=$1 + if test "x$PREFIX" != "x${PREFIX#\~/}"; then + PREFIX="$HOME/${PREFIX#\~/}" + fi ;; --system-wlroots) USE_SYSTEM_WLROOTS=enabled