Skip to content

Commit

Permalink
feat: wrapper script for tofu-mv will sed replace to new names
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarrio committed Jul 15, 2024
1 parent d2f888c commit 667e9bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@

(pkgs.writeShellScriptBin
"tofu-mv"
"tofu state mv $1.$2 $1.$3"
''
tofu state mv $1.$2 $1.$3
find . -type f -iname '*.tf' -exec sed -i "s/$2/$3/g" {} \;
''
)

(pkgs.writeShellScriptBin
Expand Down

0 comments on commit 667e9bd

Please sign in to comment.