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 }}