chore: Enable shellcheck
This commit is contained in:
parent
6964a5aa14
commit
e56496e3af
4 changed files with 6 additions and 4 deletions
|
@ -1 +1 @@
|
||||||
/nix/store/f6q34qz3fmnjqv3blhy0nb5sdp94jhva-pre-commit-config.json
|
/nix/store/zlf0hrr61mqr4bkjndn922cj615q447g-pre-commit-config.json
|
|
@ -147,6 +147,7 @@
|
||||||
|
|
||||||
hooks = {
|
hooks = {
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
|
shellcheck.enable = true;
|
||||||
statix.enable = true;
|
statix.enable = true;
|
||||||
treefmt.enable = true;
|
treefmt.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,7 +6,7 @@ export IFS=' '
|
||||||
|
|
||||||
echo "Uploading $OUT_PATHS ..."
|
echo "Uploading $OUT_PATHS ..."
|
||||||
|
|
||||||
if /run/current-system/sw/bin/attic push nifoc-systems $OUT_PATHS; then
|
if /run/current-system/sw/bin/attic push nifoc-systems "$OUT_PATHS"; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "Ignoring error ..."
|
echo "Ignoring error ..."
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p coreutils findutils rsync
|
#!nix-shell -i bash -p coreutils findutils rsync
|
||||||
|
# shellcheck disable=SC1008
|
||||||
|
|
||||||
current="$PWD"
|
current="$PWD"
|
||||||
src="$(realpath "$1")"
|
src="$(realpath "$1")"
|
||||||
dst="$(realpath "$2")"
|
dst="$(realpath "$2")"
|
||||||
|
|
||||||
cd "$dst"
|
cd "$dst" || exit
|
||||||
find . -not -path './.git/*' -not -path './.git' -not -path '.' -not -path '..' -print0 | xargs -0 rm -rf
|
find . -not -path './.git/*' -not -path './.git' -not -path '.' -not -path '..' -print0 | xargs -0 rm -rf
|
||||||
rsync -ax "$src/" ./ --exclude .git --exclude deps --exclude _build
|
rsync -ax "$src/" ./ --exclude .git --exclude deps --exclude _build
|
||||||
|
|
||||||
rm -rf ./.gitlab
|
rm -rf ./.gitlab
|
||||||
rm -f ./.gitlab-ci.yml
|
rm -f ./.gitlab-ci.yml
|
||||||
|
|
||||||
cd "$current"
|
cd "$current" || exit
|
||||||
|
|
Loading…
Reference in a new issue