aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-09-05 14:00:25 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-09-05 16:46:12 +0200
commit99f78178964d12e3a8ae6cc4aebf894320e562df (patch)
tree1c780d0b9d4740a41616ae716decbc469a102d8d /install.sh
parent0f3444ced75558884334a99fc04b9c72b1924e42 (diff)
downloaddotfiles-99f78178964d12e3a8ae6cc4aebf894320e562df.tar.gz
dotfiles-99f78178964d12e3a8ae6cc4aebf894320e562df.zip
Added linters and polished code
The minimum version supported has been raised to 25.3. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index c8e561a..e551236 100755
--- a/install.sh
+++ b/install.sh
@@ -40,6 +40,8 @@ for i in "${ary[@]:1:${#ary[@]}}"; do
ignore+=" -or -name $i"
done
+# shellcheck disable=SC2086
+# shellcheck disable=SC2044
for file in $(find "$(pwd)" -mindepth 1 -maxdepth 1 ! \( $ignore \)); do
# The -F and -f flags of ln suck. Let's rm all the way.
rm -rf "${HOME:?}/$(basename $file)"