From cd0491be55a5c831a287fac4ba308f15b039d69c Mon Sep 17 00:00:00 2001 From: octospacc Date: Thu, 29 Aug 2024 00:35:27 +0200 Subject: [PATCH] fix.. --- Scripts/Requirements.sh | 2 +- layouts/partials/ImgButton.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/Requirements.sh b/Scripts/Requirements.sh index 7b55786..0d44869 100755 --- a/Scripts/Requirements.sh +++ b/Scripts/Requirements.sh @@ -3,7 +3,7 @@ cd "${swd}/.." alias asroot="" -if [ "$(whoami)" != root && "$(uname -o)" != Android ] +if [ "$(whoami)" != root ] && [ "$(uname -o)" != Android ] then alias asroot=sudo fi diff --git a/layouts/partials/ImgButton.html b/layouts/partials/ImgButton.html index ed65261..c6434d0 100644 --- a/layouts/partials/ImgButton.html +++ b/layouts/partials/ImgButton.html @@ -17,10 +17,10 @@ $alt $alt (index $sizes 0) (index $sizes 1) ) | safeHTML -}} -{{- if .href -}} +{{ if .href }} {{ partial "anchor.html" (dict "Inner" $img "Params" .) }} -{{- else -}} +{{ else }} {{ $img }} -{{- end -}} +{{ end }}