Fix prompt errors on Solaris.
This commit is contained in:
@@ -160,7 +160,7 @@ if [ -n "$PS1" ]; then
|
||||
# svn branch if exist
|
||||
#
|
||||
if [ -n "$prompt_check_svn" ]; then
|
||||
local svn_rev=$(svn info . 2> /dev/null | awk -F ':' '/Revision:/ { print $2 }')
|
||||
local svn_rev=$(svn info . 2> /dev/null | nawk -F ':' '/Revision:/ { print $2 }')
|
||||
if [ -n "$svn_rev" ]; then
|
||||
svn_text="@$svn_rev"
|
||||
PS1+="\[$c_branch\]\$svn_text" # svn revision
|
||||
|
||||
Reference in New Issue
Block a user