replaced comm with grep for devices without comm
This commit is contained in:
parent
3fab743fc3
commit
f554c21b09
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue