forked from techyminati/python_codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
los.py
18 lines (17 loc) · 802 Bytes
/
los.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
# (c) TechyMinati ( Aryan Sinha ) <[email protected]>
import os
import sys
print ("==========================================")
print (" Welcome to LineageOS Sync Script ")
print ("==========================================")
n=input("Press Y to Continue, N to Exit: ")
if (n=="Y") or (n=="y") :
print("Starting Sync..")
print (" Warning: Repo is needed to be installed in prior of running this script)
os.system('repo init -u git://github.com/LineageOS/android.git -b lineage-18.1')
print ("Starting Repo Sync")
os.system('repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)')
else :
print("Re run script to start sync incase you mistakenly pressed 'N' ")