about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/plgs-pkgs/update.sh
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
committerSoispha <soispha@vhack.eu>2024-02-20 17:21:42 +0100
commitf2bdeaed0bcf97a880fe36cfc8a050d1643120b8 (patch)
treeba4fe9c3ddf076529701c0e776ffef2104ac23d5 /sys/nixpkgs/pkgs/plgs-pkgs/update.sh
parentrefactor(treewide): Add a `.sh` extension to shell scripts (diff)
downloadnixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.tar.gz
nixos-config-f2bdeaed0bcf97a880fe36cfc8a050d1643120b8.zip
refactor(treewide): Reformat all files with treefmt
This includes getting all shellscripts to pass shellcheck. To accomplish
this, some old scripts were removed
Diffstat (limited to 'sys/nixpkgs/pkgs/plgs-pkgs/update.sh')
-rwxr-xr-xsys/nixpkgs/pkgs/plgs-pkgs/update.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/nixpkgs/pkgs/plgs-pkgs/update.sh b/sys/nixpkgs/pkgs/plgs-pkgs/update.sh
index ea71c6fa..6a0d3452 100755
--- a/sys/nixpkgs/pkgs/plgs-pkgs/update.sh
+++ b/sys/nixpkgs/pkgs/plgs-pkgs/update.sh
@@ -9,11 +9,13 @@ cd "$BASE_DIR" || (echo "BUG: No '$BASE_DIR'" && exit 1)
 sort -o "$BASE_DIR/manifest.txt" "$BASE_DIR/manifest.txt"
 sort -o "$BASE_DIR/blacklist.txt" "$BASE_DIR/blacklist.txt"
 ## Remove all plugins, which are on the blacklist
-echo "$(comm -23 "$BASE_DIR/manifest.txt" "$BASE_DIR/blacklist.txt")" > "$BASE_DIR/manifest.txt"
+# The same file is read and written to
+# shellcheck disable=SC2005
+echo "$(comm -23 "$BASE_DIR/manifest.txt" "$BASE_DIR/blacklist.txt")" >"$BASE_DIR/manifest.txt"
 
 # Backup vim-plugins.nix
 mv "$BASE_DIR/default.nix" "$BASE_DIR/default.nix.bak"
-echo "{...} : {}" > "$BASE_DIR/default.nix"
+echo "{...} : {}" >"$BASE_DIR/default.nix"
 
 # Generate derivations for new plugins (this binary is provided by the dev-environment)
 update-vim-plugins cleanup "$BASE_DIR"
@@ -21,6 +23,5 @@ update-vim-plugins cleanup "$BASE_DIR"
 # Restore vim-plugins.nix
 mv "$BASE_DIR/default.nix.bak" "$BASE_DIR/default.nix"
 
-
 # Update new plugins
 update-vim-plugins update "$BASE_DIR" --all