Loading .pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,6 @@ sha: v0.5.4 hooks: - id: shell-lint files: &shellscripts 'bashrc|post-merge|profile|docker-|train-wifi|renew-certs|dma-clean|gen-ssh-config|dconf-load|kavim-wifi' files: &shellscripts 'bashrc|post-merge|profile|docker-|train-wifi|renew-certs|dma-clean|gen-ssh-config|dconf-load|kavim-wifi|install-git-hooks|pocketchip-battery|update-voltage' - id: shellcheck files: *shellscripts Documents/bin/install-git-hooks +1 −1 Original line number Diff line number Diff line Loading @@ -2,4 +2,4 @@ set -eu cd "$HOME/.githooks" find -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \; find . -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \; Documents/bin/pocketchip-battery +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ set -eu current="$(cat /usr/lib/pocketchip-batt/voltage)" # shellcheck disable=SC1090 . "$HOME/.local/voltage" # shellcheck disable=SC2154 echo $(( 100 * (current - min) / (max - min) )) Documents/bin/update-voltage +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ then exit 0 fi # shellcheck disable=SC1090 . "$filepath" if [ "$current" -gt "$max" ] Loading Loading
.pre-commit-config.yaml +1 −1 Original line number Diff line number Diff line Loading @@ -9,6 +9,6 @@ sha: v0.5.4 hooks: - id: shell-lint files: &shellscripts 'bashrc|post-merge|profile|docker-|train-wifi|renew-certs|dma-clean|gen-ssh-config|dconf-load|kavim-wifi' files: &shellscripts 'bashrc|post-merge|profile|docker-|train-wifi|renew-certs|dma-clean|gen-ssh-config|dconf-load|kavim-wifi|install-git-hooks|pocketchip-battery|update-voltage' - id: shellcheck files: *shellscripts
Documents/bin/install-git-hooks +1 −1 Original line number Diff line number Diff line Loading @@ -2,4 +2,4 @@ set -eu cd "$HOME/.githooks" find -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \; find . -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \;
Documents/bin/pocketchip-battery +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ set -eu current="$(cat /usr/lib/pocketchip-batt/voltage)" # shellcheck disable=SC1090 . "$HOME/.local/voltage" # shellcheck disable=SC2154 echo $(( 100 * (current - min) / (max - min) ))
Documents/bin/update-voltage +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ then exit 0 fi # shellcheck disable=SC1090 . "$filepath" if [ "$current" -gt "$max" ] Loading