forked from flamegapps/flamegapps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsourcehelper.sh
More file actions
29 lines (23 loc) · 926 Bytes
/
sourcehelper.sh
File metadata and controls
29 lines (23 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
###########################################
#
# Copyright (C) 2021 FlameGApps Project
#
# This file is part of the FlameGApps Project created by ayandebnath
#
# The FlameGApps scripts are free software, you can redistribute and/or modify them.
#
# These scripts are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY.
#
###########################################
#
echo -e "\n${YELLOW}Updating submodule(s)... $NC"
git submodule update --init --remote --depth=1 'sources/gapps-resources'
if [ "$?" -ne "0" ]; then
echo -e "${RED}Something went wrong, unable to clone/update submodule(s) $NC"
echo -e "${RED}*** The script will now exit *** $NC"
exit 1
fi
git config --list | grep -q 'filter.lfs.process=git-lfs filter-process' || git submodule foreach 'git lfs install'
git submodule foreach 'git checkout main; git pull --depth=1 --rebase; git lfs pull'
echo -e "${YELLOW}Updated. $NC"