sync
This commit is contained in:
12
prep
12
prep
@@ -29,7 +29,7 @@ def main():
|
|||||||
|
|
||||||
print()
|
print()
|
||||||
print("╔══════════════════════════════════════════╗")
|
print("╔══════════════════════════════════════════╗")
|
||||||
print("║ Prep: mods → config → rsync → commit ║")
|
print("║ Prep: mods → config → rsync → commit ║")
|
||||||
print("╚══════════════════════════════════════════╝")
|
print("╚══════════════════════════════════════════╝")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
@@ -47,18 +47,12 @@ def main():
|
|||||||
subprocess.run([
|
subprocess.run([
|
||||||
"rsync", "-avz",
|
"rsync", "-avz",
|
||||||
"-e", RSYNC_SSH,
|
"-e", RSYNC_SSH,
|
||||||
LOCALMODS_DIR, CONFIG_PATH,
|
LOCALMODS_DIR + "/", CONFIG_PATH,
|
||||||
"root@barotrauma:/opt/barotrauma/"
|
"baro@barotrauma:/opt/barotrauma/"
|
||||||
], check=True)
|
], check=True)
|
||||||
log_ok("Synced to server")
|
log_ok("Synced to server")
|
||||||
print()
|
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.")
|
log_ok("Done. Push manually when ready.")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user