aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2022-05-26 15:09:30 +0200
committerCharles Cabergs <me@cacharle.xyz>2022-05-26 15:09:30 +0200
commit796504bdf965fec883e620788d54bf90807361d5 (patch)
treeab40df7884af3d64e790855d9d75bd14b94c0a81 /test
parent9f09a23e20ea1ea4e8646e826156112c9ca7725c (diff)
downloaddotfiles-796504bdf965fec883e620788d54bf90807361d5.tar.gz
dotfiles-796504bdf965fec883e620788d54bf90807361d5.tar.bz2
dotfiles-796504bdf965fec883e620788d54bf90807361d5.zip
Fixing test script and zprofile shellcheck errors
Diffstat (limited to 'test')
-rwxr-xr-xtest34
1 files changed, 15 insertions, 19 deletions
diff --git a/test b/test
index c0d1b5b..b2970e5 100755
--- a/test
+++ b/test
@@ -1,34 +1,30 @@
#!/bin/sh
-set -o xtrace
-
-ret=0
+set -xe
# SHELLCHECK
-shellcheck install || ret=$?
-shellcheck test || ret=$?
-shellcheck local/bin/* || ret=$?
-shellcheck -s sh config/zsh/.zshrc || ret=$?
-shellcheck -s sh config/zsh/aliases.zsh || ret=$?
-shellcheck -s sh -e SC2155 config/zsh/zprofile || ret=$?
-shellcheck -s sh config/x11/xinitrc || ret=$?
+shellcheck install
+shellcheck test
+shellcheck local/bin/*
+shellcheck -s sh config/zsh/.zshrc
+shellcheck -s sh config/zsh/aliases.zsh
+shellcheck -s sh -e SC2155 config/zsh/zprofile
+shellcheck -s sh config/x11/xinitrc
# VINT
-# vint -s config/vim/vimrc || ret=$?
-# vint -s config/vim/pluggins.vim || ret=$?
+# vint -s config/vim/vimrc
+# vint -s config/vim/pluggins.vim
# FLAKE8
-flake8 --ignore F821,E501,W504,N816,E241 config/qutebrowser/config.py || ret=$?
-flake8 --ignore W504,CCR001 config/python/startup.py || ret=$?
+flake8 --ignore F821,E501,W504,N816,E241 config/qutebrowser/config.py
+flake8 --ignore W504,CCR001 config/python/startup.py
# CRONTAB
if crontab -h 2>&1 | grep -q '.*-T.*'
then
- crontab -T crontab/root.crontab || ret=$?
- crontab -T crontab/user.crontab || ret=$?
+ crontab -T crontab/root.crontab
+ crontab -T crontab/user.crontab
fi
# XMONAD
-[ ! "$CI" = 'true' ] && { xmonad --recompile || ret=$?; }
-
-exit $ret
+[ ! "$CI" = 'true' ] && xmonad --recompile