commit bedd4bfd7b1f93e0e1cb6fc4ab86f38172f8b24f
parent 81178da6b459b8730a43c451245aa8d4d8456562
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date: Mon, 25 Jul 2022 18:07:27 +0200
Fix zsh expansion for determining relative path to root.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/postinstall b/postinstall
@@ -50,7 +50,7 @@ symlink_static_file() {
rel1=./conf/static$1
[[ -f $rel1 ]] || die111 "Cannot symlink: file does not exist: ${(qqq)rel1}"
relative_base=$1:h
- until [[ ${${"$relative_base/$up"}:a} == / ]] ; do
+ until [[ ${${:-$relative_base/$up}:a} == / ]] ; do
up=../$up
done
rel2=$relative_base/$up/current/conf/static$1