repo.or.cz
/
AurShell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Repo moved to http://github.com/husio/aurshell/tree/master
[AurShell.git]
/
pyshell
blob
15797d3bd94f500d1b82c2e5d9a2e183093c8fc9
1
#!/bin/bash
2
3
SHELL_FILE
=
pyshell.py
4
# cd SCRIPT_PATH
5
6
if
[
$#
-eq
0
]
7
then
8
python
$SHELL_FILE
9
10
elif
[
$#
-eq
1
] && [
$1
=
"-V"
]
||
[
$1
=
"-v"
]
11
then
12
echo -n
"AurShell, version "
13
cat
$SHELL_FILE
|
grep
^__version__ | cut
-d
'='
-f2
14
else
15
echo
Bad usage. Try to run
:
16
echo
$
$0
17
fi
18
19