replaced comm with grep for devices without comm

This commit is contained in:
Arno Gramatke 2012-03-01 22:43:46 +01:00 committed by Sitaram Chamarty
parent 3fab743fc3
commit f554c21b09

View file

@ -103,7 +103,7 @@ then
} }
print_rc_vars $GL_PACKAGE_CONF/example.gitolite.rc > $TEMPDIR/.newvars print_rc_vars $GL_PACKAGE_CONF/example.gitolite.rc > $TEMPDIR/.newvars
print_rc_vars $GL_RC > $TEMPDIR/.oldvars print_rc_vars $GL_RC > $TEMPDIR/.oldvars
comm -23 $TEMPDIR/.newvars $TEMPDIR/.oldvars > $TEMPDIR/.diffvars grep -f $TEMPDIR/.oldvars -v $TEMPDIR/.newvars > $TEMPDIR/.diffvars
if [ -s $TEMPDIR/.diffvars ] if [ -s $TEMPDIR/.diffvars ]
then then
cp $GL_PACKAGE_CONF/example.gitolite.rc $HOME/.gitolite.rc.new cp $GL_PACKAGE_CONF/example.gitolite.rc $HOME/.gitolite.rc.new