about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 13:41:13 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-25 13:41:13 +0200
commit7d3aaa963081e7bfe831fabb0f11aaf542c3357d (patch)
treea314205dec6282478c497bd3573eaca800c88804
parentfix(modules/services/nix): Add my overlayed `nixpkgs` to the flake (diff)
downloadnixos-config-7d3aaa963081e7bfe831fabb0f11aaf542c3357d.tar.gz
nixos-config-7d3aaa963081e7bfe831fabb0f11aaf542c3357d.zip
style(treewide): Format
-rwxr-xr-xpkgs/by-name/co/comments/update.sh1
-rwxr-xr-xpkgs/by-name/ge/generate_moz_extension/update.sh1
-rwxr-xr-xpkgs/by-name/lf/lf-make-map/update.sh1
-rwxr-xr-xpkgs/by-name/up/update-vim-plugins/update.sh1
-rw-r--r--pkgs/by-name/vi/vimExtraPlugins/plugins/plugins.md2
-rwxr-xr-xpkgs/by-name/ya/yambar-cpu/update.sh1
-rwxr-xr-xpkgs/by-name/ya/yambar-memory/update.sh1
-rwxr-xr-xpkgs/by-name/yt/yt/update.sh1
-rwxr-xr-xpkgs/update_pkgs.sh6
-rwxr-xr-xupdate.sh2
10 files changed, 5 insertions, 12 deletions
diff --git a/pkgs/by-name/co/comments/update.sh b/pkgs/by-name/co/comments/update.sh
index 407a2f60..b9404867 100755
--- a/pkgs/by-name/co/comments/update.sh
+++ b/pkgs/by-name/co/comments/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
 
diff --git a/pkgs/by-name/ge/generate_moz_extension/update.sh b/pkgs/by-name/ge/generate_moz_extension/update.sh
index 407a2f60..b9404867 100755
--- a/pkgs/by-name/ge/generate_moz_extension/update.sh
+++ b/pkgs/by-name/ge/generate_moz_extension/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
 
diff --git a/pkgs/by-name/lf/lf-make-map/update.sh b/pkgs/by-name/lf/lf-make-map/update.sh
index 56105a1d..7d517e8b 100755
--- a/pkgs/by-name/lf/lf-make-map/update.sh
+++ b/pkgs/by-name/lf/lf-make-map/update.sh
@@ -1,5 +1,4 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
diff --git a/pkgs/by-name/up/update-vim-plugins/update.sh b/pkgs/by-name/up/update-vim-plugins/update.sh
index 1d9d03b0..1bad12a9 100755
--- a/pkgs/by-name/up/update-vim-plugins/update.sh
+++ b/pkgs/by-name/up/update-vim-plugins/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 poetry update --lock
 
 # vim: ft=sh
diff --git a/pkgs/by-name/vi/vimExtraPlugins/plugins/plugins.md b/pkgs/by-name/vi/vimExtraPlugins/plugins/plugins.md
index c4906618..1efcd762 100644
--- a/pkgs/by-name/vi/vimExtraPlugins/plugins/plugins.md
+++ b/pkgs/by-name/vi/vimExtraPlugins/plugins/plugins.md
@@ -1,4 +1,4 @@
- - Plugin count: 3
+- Plugin count: 3
 
 | Repo | Last Update | Nix package name | Last checked |
 |:---|:---|:---|:---|
diff --git a/pkgs/by-name/ya/yambar-cpu/update.sh b/pkgs/by-name/ya/yambar-cpu/update.sh
index 407a2f60..b9404867 100755
--- a/pkgs/by-name/ya/yambar-cpu/update.sh
+++ b/pkgs/by-name/ya/yambar-cpu/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
 
diff --git a/pkgs/by-name/ya/yambar-memory/update.sh b/pkgs/by-name/ya/yambar-memory/update.sh
index 407a2f60..b9404867 100755
--- a/pkgs/by-name/ya/yambar-memory/update.sh
+++ b/pkgs/by-name/ya/yambar-memory/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
 
diff --git a/pkgs/by-name/yt/yt/update.sh b/pkgs/by-name/yt/yt/update.sh
index 407a2f60..b9404867 100755
--- a/pkgs/by-name/yt/yt/update.sh
+++ b/pkgs/by-name/yt/yt/update.sh
@@ -1,6 +1,5 @@
 #!/usr/bin/env sh
 
-
 [ "$1" = "upgrade" ] && cargo upgrade
 cargo update
 
diff --git a/pkgs/update_pkgs.sh b/pkgs/update_pkgs.sh
index 0a8c4cfc..3e33b720 100755
--- a/pkgs/update_pkgs.sh
+++ b/pkgs/update_pkgs.sh
@@ -9,14 +9,14 @@ cd "$(dirname "$0")" || die "Bug: run with the wrong first arg: '$0'!"
 cd ./by-name || die "(BUG): The directory './by-name' does not exist?"
 
 # First check if all the update scripts conform to the standard
-files_with_update="$(mktemp)";
+files_with_update="$(mktemp)"
 trap 'rm "$files_with_update"' EXIT
 
 fd '^update.sh$' . --type file --extension sh --max-depth 3 | while read -r file; do
-    grep -q "nix flake update" "$file" && echo "$file" >> "$files_with_update"
+    grep -q "nix flake update" "$file" && echo "$file" >>"$files_with_update"
 done
 
-if [ "$(wc -l < "$files_with_update")" != 0 ]; then
+if [ "$(wc -l <"$files_with_update")" != 0 ]; then
     die "Some packages seem to try to update their flake with 'nix flake update'. This is redundant. These Packages are: $(echo && cat "$files_with_update")"
 fi
 
diff --git a/update.sh b/update.sh
index c96f4482..5394f0ca 100755
--- a/update.sh
+++ b/update.sh
@@ -1,6 +1,6 @@
 #!/usr/bin/env sh
 __update_sh_run() {
-    __update_sh_command="$1";
+    __update_sh_command="$1"
     shift 1
 
     printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command")' .."