sync
This commit is contained in:
12
prep
12
prep
@@ -29,7 +29,7 @@ def main():
|
||||
|
||||
print()
|
||||
print("╔══════════════════════════════════════════╗")
|
||||
print("║ Prep: mods → config → rsync → commit ║")
|
||||
print("║ Prep: mods → config → rsync → commit ║")
|
||||
print("╚══════════════════════════════════════════╝")
|
||||
print()
|
||||
|
||||
@@ -47,18 +47,12 @@ def main():
|
||||
subprocess.run([
|
||||
"rsync", "-avz",
|
||||
"-e", RSYNC_SSH,
|
||||
LOCALMODS_DIR, CONFIG_PATH,
|
||||
"root@barotrauma:/opt/barotrauma/"
|
||||
LOCALMODS_DIR + "/", CONFIG_PATH,
|
||||
"baro@barotrauma:/opt/barotrauma/"
|
||||
], check=True)
|
||||
log_ok("Synced to server")
|
||||
print()
|
||||
|
||||
log_info("Step 4/4: Committing...")
|
||||
subprocess.run(["git", "add", "-A"], cwd=BASE, check=True)
|
||||
subprocess.run(["git", "commit", "-m", msg], cwd=BASE, check=True)
|
||||
log_ok(f"Committed: {msg}")
|
||||
print()
|
||||
|
||||
log_ok("Done. Push manually when ready.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user