mirror of https://github.com/deadw00d/AROS.git
use double quotes and $() notation
This commit is contained in:
parent
6220c541ca
commit
ffd301fc7e
|
@ -3,13 +3,13 @@
|
|||
# get repository revision via svn or via git
|
||||
#
|
||||
|
||||
inside_git_repo=`cd $1 && git rev-parse --is-inside-work-tree 2>/dev/null`
|
||||
inside_git_repo=$(cd "$1" && git rev-parse --is-inside-work-tree 2>/dev/null)
|
||||
|
||||
if test -d $1/.svn; then
|
||||
svn info $1 | sed -n 's/Revision: //p'
|
||||
if test -d "$1/.svn"; then
|
||||
svn info "$1" | sed -n 's/Revision: //p'
|
||||
else
|
||||
if [ "$inside_git_repo" = "true" ]; then
|
||||
cd $1
|
||||
cd "$1"
|
||||
git rev-parse --short HEAD
|
||||
else
|
||||
echo "NoRev"
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
# get repository type
|
||||
#
|
||||
|
||||
inside_git_repo=`cd $1 && git rev-parse --is-inside-work-tree 2>/dev/null`
|
||||
inside_git_repo=$(cd "$1" && git rev-parse --is-inside-work-tree 2>/dev/null)
|
||||
|
||||
if test -d $1/.svn; then
|
||||
if test -d "$1/.svn"; then
|
||||
echo "SVN"
|
||||
else
|
||||
if [ "$inside_git_repo" = "true" ]; then
|
||||
|
|
Loading…
Reference in New Issue