-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
43 lines (34 loc) · 868 Bytes
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
########################################
# this is need
########################################
function start(){
# create install array
install=()
# add element to array
echo "Select Packages to Install?(eg: 1 2 3, 1-3, ^4)"
# input params
i=0
for dir in ./*; do
if [ -d $dir ]; then
let i
echo "$i. $dir"
if [ -e $dir/install.sh ]; then
echo "$dir/install.sh --<<"
source $dir/install.sh "$dir/install.sh"
fi
fi
done
i=0
for dir in ./*; do
if [ -d $dir ]; then
let i
echo $dir
if [ -e $dir/install.sh ]; then
echo "$dir/install.sh --<<"
source $dir/install.sh "$dir/install.sh"
fi
fi
done
}
start