-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhook.bash
More file actions
23 lines (20 loc) · 717 Bytes
/
Copy pathhook.bash
File metadata and controls
23 lines (20 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
service=$(config service)
shopt -s nocasematch;
if [[ $os =~ "debian" ]]; then
run_story $(config action) os debian service $service
elif [[ "$os" =~ "ubuntu" ]]; then
run_story $(config action) os debian service $service
elif [[ "$os" =~ "amazon" ]]; then
run_story $(config action) os amazon service $service
elif [[ "$os" =~ "centos" ]]; then
run_story $(config action) os $os service $service
elif [[ "$os" =~ "archlinux" ]]; then
run_story $(config action) os $os service $service
elif [[ "$os" =~ "minoca" ]]; then
run_story $(config action) os $os service $service
elif [[ "$os" =~ "funtoo" ]]; then
run_story $(config action) os $os service $service
else
echo "unknown os: $os"
exit 1
fi