1
0
Fork 0

chore: Enable shellcheck

This commit is contained in:
Daniel Kempkens 2023-07-17 00:41:03 +02:00
parent 6964a5aa14
commit e56496e3af
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 6 additions and 4 deletions

View file

@ -1 +1 @@
/nix/store/f6q34qz3fmnjqv3blhy0nb5sdp94jhva-pre-commit-config.json
/nix/store/zlf0hrr61mqr4bkjndn922cj615q447g-pre-commit-config.json

View file

@ -147,6 +147,7 @@
hooks = {
deadnix.enable = true;
shellcheck.enable = true;
statix.enable = true;
treefmt.enable = true;
};

View file

@ -6,7 +6,7 @@ export IFS=' '
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
else
echo "Ignoring error ..."

View file

@ -1,15 +1,16 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils findutils rsync
# shellcheck disable=SC1008
current="$PWD"
src="$(realpath "$1")"
dst="$(realpath "$2")"
cd "$dst"
cd "$dst" || exit
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
rm -rf ./.gitlab
rm -f ./.gitlab-ci.yml
cd "$current"
cd "$current" || exit