-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsc
More file actions
executable file
·47 lines (42 loc) · 690 Bytes
/
sc
File metadata and controls
executable file
·47 lines (42 loc) · 690 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
41
42
43
44
45
46
47
#!/bin/bash -l
DEST=""
source ~/.cloudficacao.conf
JERICO_SC="jerico"
DOOMSDAY_SC="doomsday"
JIS_SC="jis"
HEIMDALL_SC="heimdall"
INFRA_SC="infra"
options="$JERICO_SC $JIS_SC $DOOMSDAY_SC $HEIMDALL_SC $INFRA_SC"
while [ $# -gt 0 ]; do
arg=$1
case $arg in
$JERICO_SC)
DEST=$JERICO_ROOT_DIR
;;
$DOOMSDAY_SC)
DEST=$DOOMSDAY_ROOT_DIR
;;
$JIS_SC)
DEST=$JIS_ROOT_DIR
;;
$HEIMDALL_SC)
DEST=$HEIMDALL_ROOT_DIR
;;
$INFRA_SC)
DEST=$INFRA_ROOT_DIR
;;
shortlist)
echo $options
;;
*)
echo Wrong option
;;
esac
shift
done
if [ -n "$DEST" ]
then
cd $DEST
exec $SHELL -l
# exec /bin/bash
fi