Skip to content

Commit 931a026

Browse files
committed
codes: Add Lineage Sync Script
1 parent 59be8b9 commit 931a026

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎los.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
# (c) TechyMinati ( Aryan Sinha ) <sinha.aryan03@gmail.com>
4+
import os
5+
import sys
6+
print ("==========================================")
7+
print (" Welcome to LineageOS Sync Script ")
8+
print ("==========================================")
9+
n=input("Press Y to Continue, N to Exit: ")
10+
if (n=="Y") or (n=="y") :
11+
print("Starting Sync..")
12+
print (" Warning: Repo is needed to be installed in prior of running this script)
13+
os.system('repo init -u git://github.com/LineageOS/android.git -b lineage-18.1')
14+
print ("Starting Repo Sync")
15+
os.system('repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)')
16+
else :
17+
print("Re run script to start sync incase you mistakenly pressed 'N' ")
18+

0 commit comments

Comments
 (0)