forked from Itz-fork/X-Bin-Patch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
startup.sh
37 lines (29 loc) · 996 Bytes
/
startup.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
31
32
33
34
35
36
37
#!/usr/bin/bash
echo "
█▀▄▀█ █▀▀ █▀▀ ▄▀█ █▄ █ ▀█
█ ▀ █ ██▄ █▄█ █▀█ ▄ █ ▀█ █▄
█▄▄ █▀█ ▀█▀
█▄█ █▄█ █
Copyright (c) 2021 Itz-fork | @NexaBotsUpdates
"
function show_error_msg() {
echo -e "ERROR: $1"
exit
}
function check_depends() {
is_megatools=$(command -v megatools &> /dev/null)
is_ffmpeg=$(command -v ffmpeg &> /dev/null)
# Checks if megatools is installed
if ! $is_megatools ; then
show_error_msg "'megatools' is not installed on this system. Please install it from - https://megatools.megous.com/"
# Checks if ffmpeg is installed
elif ! $is_ffmpeg ; then
show_error_msg "'ffmpeg' is not installed on this system. Please install it from - https://ffmpeg.org/download.html"
fi
}
function run() {
echo ">> Starting the main repo"
python3 -m megadl
}
check_depends
run