From c83642a7bff42c2c3e8174217b77e11d9085d9d4 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Fri, 12 May 2017 23:01:29 +0300
Subject: [PATCH] - Updated pre-commit hooks (now we'll see some errors). -
 Updated list of shell script to check with pre-comit. - Renamed train-wifi.sh
 to train-wifi .

---
 .pre-commit-config.yaml                 | 5 ++---
 Documents/{train-wifi.sh => train-wifi} | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)
 rename Documents/{train-wifi.sh => train-wifi} (97%)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9f393c0..e3febfd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,10 +6,9 @@
     -   id: flake8
         files: \.pythonstartup|Documents/Shore/cleanup/vagrant-.*
 -   repo: https://www.shore.co.il/git/shell-pre-commit/
-    sha: v0.5.0
-    sha: master
+    sha: v0.5.3
     hooks:
     -   id: shell-lint
-        files: &shellscripts '\.bashrc|\.githooks/post-merge|\.profile|Documents/Shore/cleanup/docker-.*|Documents/train-wifi\.sh|renew-certs'
+        files: &shellscripts 'bashrc|post-merge|profile|docker-|train-wifi|renew-certs'
     -   id: shellcheck
         files: *shellscripts
diff --git a/Documents/train-wifi.sh b/Documents/train-wifi
similarity index 97%
rename from Documents/train-wifi.sh
rename to Documents/train-wifi
index 90eaf0f..de2ee74 100755
--- a/Documents/train-wifi.sh
+++ b/Documents/train-wifi
@@ -24,7 +24,7 @@
 # Logs in to the Israeli train's wifi.
 # Requires: cURL, sh, awk, logger, nmcli.
 # To install run:
-# sudo cp --preserve=mode train-wifi.sh /etc/NetworkManager/dispatcher.d/90trainwifi
+# sudo cp --preserve=mode train-wifi /etc/NetworkManager/dispatcher.d/90trainwifi
 
 set -eu
 
-- 
GitLab