Fix prompt errors on Solaris.

This commit is contained in:
Vahagn Khachatryan
2020-02-28 05:55:45 -05:00
parent 519c9e802d
commit 01e488783b

View File

@@ -160,7 +160,7 @@ if [ -n "$PS1" ]; then
# svn branch if exist # svn branch if exist
# #
if [ -n "$prompt_check_svn" ]; then 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 if [ -n "$svn_rev" ]; then
svn_text="@$svn_rev" svn_text="@$svn_rev"
PS1+="\[$c_branch\]\$svn_text" # svn revision PS1+="\[$c_branch\]\$svn_text" # svn revision