-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathuptimey.sh
executable file
·49 lines (43 loc) · 1.01 KB
/
uptimey.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
44
45
46
47
48
49
#!/usr/bin/env fish
#
# # uptimey - uptimey management script
#
if test (count $argv) -lt 1
echo ""
echo "uptimey command required. See the following command for help"
echo "./uptimey help"
echo ""
else
switch $argv[1]
case "help"
echo ""
echo "Commands:"
echo ""
echo "init # Initialize uptimey"
echo ""
echo "Example of uptimey init command:"
echo ""
echo "./uptimey.sh install"
echo ""
exit 0
case "init"
echo ""
and echo "Installing dependencies"
and rm -rf node_modules
and rm -rf bower_components
and rm -rf .sass-cache
and npm cache clean
and npm install --production
and bower install
and echo ""
and echo "Starting uptimey"
and npm start
and echo ""
or begin
set -l err $status
echo "uptimey init encountered an error. Exit status: $err."
exit $err
end
exit 0
end
end