mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-06 00:15:05 -04:00
Deduplicate Overclock.sh and Optimize.sh
This commit is contained in:
parent
b50352bc8e
commit
8347c07ec1
7 changed files with 34 additions and 96 deletions
|
@ -30,14 +30,20 @@ export -f startPatcher;
|
|||
enter() {
|
||||
echo "================================================================================================"
|
||||
dir="$1";
|
||||
cd "$DOS_BUILD_BASE$dir";
|
||||
echo "[ENTERING] $dir";
|
||||
dirReal="$DOS_BUILD_BASE$dir";
|
||||
if [ -d "$dirReal" ]; then
|
||||
cd "$dirReal";
|
||||
echo -e "\e[0;32m[ENTERING] $dir\e[0m";
|
||||
return 0;
|
||||
else
|
||||
echo -e "\e[0;31m[ENTERING FAILED] $dir\e[0m";
|
||||
return 1;
|
||||
fi;
|
||||
}
|
||||
export -f enter;
|
||||
|
||||
enterAndClear() {
|
||||
enter "$1";
|
||||
gitReset;
|
||||
if enter "$1"; then gitReset; fi;
|
||||
}
|
||||
export -f enterAndClear;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue