diff options
Diffstat (limited to 'deploy.py')
-rw-r--r-- | deploy.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,8 +14,8 @@ if __name__ == '__main__': subprocess.run(['git', 'worktree', 'add', '--detach', tmpdir], check=True) try: - env = dict(os.environ()) - env['PATH'] = Path('hack').absolute() + ':' + env['PATH'] + env = dict(os.environ) + env['PATH'] = f'{Path("hack").absolute()}:{env["PATH"]}' subprocess.run(['hugo'], cwd=tmpdir, check=True, env=env) subprocess.run(['git', 'add', '--force', 'public'], cwd=tmpdir, check=True) write_tree = subprocess.run(['git', 'write-tree', '--prefix=public/'], cwd=tmpdir, check=True, capture_output=True) |