Skip to content

Commit

Permalink
Fixed yq hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Aug 9, 2024
1 parent 12de67d commit 9ea0c15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/hooks/yq/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ if [ "$ARCH" == "x86_64" ]; then
ARCH="amd64"
elif [ "$ARCH" == "armv7l" ]; then
ARCH="arm"
elif [ "$ARCH" == "aarch64" ]; then
ARCH="arm64"
fi

if ! type -P yq > /dev/null && [ ! -f ~/.local/bin/yq ]; then
Expand All @@ -24,4 +26,4 @@ if ! type -P yq > /dev/null && [ ! -f ~/.local/bin/yq ]; then
chmod +x ~/.local/bin/yq
fi

export PATH=$PATH:~/.local/bin/
export PATH=$PATH:~/.local/bin/

0 comments on commit 9ea0c15

Please sign in to comment.