summaryrefslogtreecommitdiff
path: root/pkgs/dfmodsync.nix
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-08-20 21:28:30 -0400
committertriethyl <triethylammonium@pm.me>2025-08-21 18:16:12 -0400
commitef7c5fdf4e957a78d5b6994abc0fc59ac389304d (patch)
treeb9ac9683844a5b14a1537fd1dc3a9f67de8108c8 /pkgs/dfmodsync.nix
parentded99be448295035750b381ed322d53fe3e12158 (diff)
fixed dfmodsync package
Diffstat (limited to 'pkgs/dfmodsync.nix')
-rw-r--r--pkgs/dfmodsync.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/dfmodsync.nix b/pkgs/dfmodsync.nix
index fd6e18c..1a8e6d2 100644
--- a/pkgs/dfmodsync.nix
+++ b/pkgs/dfmodsync.nix
@@ -7,11 +7,14 @@ nu
let workshop_dir = "~/.local/share/Steam/steamapps/workshop/content/975370"
let df_dir = "~/.local/share/Steam/steamapps/common/Dwarf Fortress/mods"
+ let df_installed_dir = "~/.local/share/Steam/steamapps/common/Dwarf Fortress/data/installed_mods"
let workshop_dir = $workshop_dir | path expand
let df_dir = $df_dir | path expand
+ let df_installed_dir = $df_installed_dir | path expand
glob $"($df_dir)/*" | each {rm -rf $in ; print $"deleted ($in | path basename)"}
+ glob $"($df_installed_dir)/*" | each {rm -rf $in ; print $"deleted ($in | path basename)"}
glob $"($workshop_dir)/*" | each {cp -r $in $df_dir; print $"copied ($in | path basename)"}
print "Synced Mods!"