-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.sh
41 lines (40 loc) · 1.54 KB
/
template.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
#!/bin/bash
source config.sh
# common to all linux distros
if basedOn "$osname" "$linux"; then
# code that has to be executed before downstream-specific distros
# common to arch-based distros
if basedOn "$osname" "$archlinux"; then
# code that has to be executed before downstream-specific distros
# arch linux-specific
if [[ "$osname" == "$archlinux" ]]; then
:
fi
# code that has to be executed after downstream-specific distros
# common to debian-based distros
elif basedOn "$osname" "$debian"; then
# code that has to be executed before downstream-specific distros
# debian-specific
if [[ "$osname" == "$debian" ]]; then
:
# common to ubuntu-based distros
elif basedOn "$osname" "$ubuntu"; then
# code that has to be executed before downstream-specific distros
# ubuntu-specific
if [[ "$osname" == "$ubuntu" ]]; then
:
fi
# code that has to be executed after downstream-specific distros
fi
# code that has to be executed after downstream-specific distros
# common to fedora-based distros
elif basedOn "$osname" "$fedora"; then
# code that has to be executed before downstream-specific distros
# fedora-specific
if [[ "$osname" == "$fedora" ]]; then
:
fi
# code that has to be executed after downstream-specific distros
fi
# code that has to be executed after downstream-specific distros
fi