File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,32 @@ mkdir -p $Var_Dir && cd $Var_Dir # source code location
57
57
NAME=" rm -r $Var_Dir " && dest=$HOME /tools-uninstallation-script.sh
58
58
echo " $NAME " >> " $dest "
59
59
printf " ${GREEN} $Var_Dir folder was successfully created at $HOME \n${NO_COLOR} "
60
- exit
60
+
61
+ # repo download and source sync
62
+ SYNC=repo sync -c -j$( nproc --all) --force-sync --no-clone-bundle --no-tags & > /dev/null # source sync variable
63
+ while true ; do
64
+ read -r -p " Do you want to download ROMs repo right now? " yn
65
+ case " $yn " in
66
+ [Yy]* )
67
+ printf " Please insert ROMs repo link\n"
68
+ read REPO # enter repo link here
69
+ $REPO
70
+ while true ; do
71
+ read -r -p " Do you want to sync ROMs source code? " yn
72
+ case " $yn " in
73
+ [Yy]* )
74
+ $SYNC # source sync
75
+ printf " Done\n"
76
+ exit ;;
77
+ [Nn]* )
78
+ echo " Exiting"
79
+ exit ;;
80
+ esac
81
+ done
82
+ exit ;;
83
+ [Nn]* )
84
+ echo " Exiting"
85
+ exit ;;
86
+ * ) " Please enter a valid answer (Yy/Nn)" ;;
87
+ esac
88
+ done
You can’t perform that action at this time.
0 commit comments