=================================================================== RCS file: /cvs/mtctl/installer.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- mtctl/installer.sh 2021/09/26 14:02:56 1.3 +++ mtctl/installer.sh 2021/10/19 10:05:56 1.4 @@ -41,20 +41,21 @@ cat mtctl_default.sh >> mtctl rm mtctl_default.sh chmod 555 mtctl -$ROOTCMD install mtctl /usr/bin/mtctl -$ROOTCMD mkdir -p /etc/mtctl -$ROOTCMD rm mtctl +install mtctl /usr/bin/mtctl +mkdir -p /etc/mtctl +rm mtctl if [ "$SHLL" == "bash" ]; then + apt-get install rsync if [ \! -f mtctl-completion.bash ]; then curl -sO mtctl-completion.bash "https://cvsweb.planetofnix.com/cgi-bin/cvsweb/~checkout~/mtctl/mtctl-completion.bash?content-type=text/plain"; fi - $ROOTCMD mkdir -p /etc/bash_completion.d - $ROOTCMD mv mtctl-completion.bash /etc/bash_completion.d/mtctl-completion + mkdir -p /etc/bash_completion.d + mv mtctl-completion.bash /etc/bash_completion.d/mtctl-completion . /etc/bash_completion.d/mtctl-completion elif [ "$SHLL" == "ksh" ]; then if [ "`which rsync 2> /dev/null`" == "" ]; then - $ROOTCMD pkg_delete rsync + pkg_delete rsync fi - $ROOTCMD pkg_add rsync-- + pkg_add rsync-- fi echo -e "Done!\n\nThanks for installing mtctl!\nYou can now use it by running $ mtctl"