4
SVN에서 repo로 커밋하는 트랜잭션의 사용자 이름을 얻으려고합니다.변수에 SVN 명령의 결과 저장
REPOS="$1"
TXN="$2"
touch /root/home/r/WC/log.log
AUTHOR="$(svnlook author -t $TXN $REPOS)"
echo $AUTHOR >> /root/home/r/WC/log.log
exit 0
그리고 결과는 분명히 TXN 및 REPOS 변수는 보간 된 $(svnlook author -t 12-r /root/home/r/REPO)
하지만 svnlook author
명령이 실행되지 않았습니다
pre-commit hook
에 다음과 같이 썼다.
내가 그런
AUTHOR=$(svnlook author -t $TVN $REPOS) # returned syntax error
AUTHOR=`svnlook author -t $TVN $REPOS` # did not execute the svnlook command
내가 솔라리스
에에서