-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.sh
More file actions
40 lines (33 loc) · 753 Bytes
/
head.sh
File metadata and controls
40 lines (33 loc) · 753 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
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
cls='printf \033c'
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m'
BOLD='\033[1m'
. $realPath/files/menu.sh
. $realPath/configs/menu.sh
. $realPath/db/menu.sh
. $realPath/configs/config.sh
. $realPath/db/database.sh
. $realPath/files/archiver.sh
input () {
if [ -z "$1" ]; then text="Введите значение: "
else text="Введите $1: "; fi
while read -rp "$text" value; do
if [ -z "$value" ]
then
echo "Вы ничего не ввели!"
printf "Введите значение: "
else
break
fi
done
echo $value
}
wait () {
echo -e "\nЧтоб продолжить нажмите любую кнопку...\n"
while [ true ] ; do
read -n 1
if [ $? = 0 ] ; then $cls; main_menu; fi
done
}