-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·30 lines (23 loc) · 1.29 KB
/
install.sh
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
30
#!/gearlock/bin/bash
## For proper developer documentation, visit https://wiki.supreme-gamers.com/gearlock/developer-guide
# Check `!zygote.sh` to configure your package functions or gearlock can also guide you during the build process
#####--- Import Functions ---#####
get_base_dir # Returns execution directory path in $BD variable
# get_net_stat
check_compat 7.2.22
#####--- Import Functions ---#####
# Ensure compatible GearLock version
if test "$COMPAT" != "yes"; then
geco "\n[!!!] Please update GearLock to install this" && exit 101
fi
# Example Copy function
geco "+ Merging files in your operating-system"
gclone "$BD/system/" "$SYSTEM_DIR" # You must use quotes " " if any of your file-name contains *spaces or special characters
# gclone "$BD/data/" "$DATA_DIR"
# Example color text output # ${RC} goes for "Reset-color" to normal
geco "\n${GREEN}Hello World!${RC}"
# Silent any command (in this case, it's deleting a file)
nout rm /data/baloo # Let's say, rm failed to delete the file but wont give any output for that.
## You should remove these examples if you dont need them.
## These are presented here just to give you some insights about the basics.
## There are many more awesome functions that you can use, visit https://wiki.supreme-gamers.com/gearlock/developer-guide for more information.