Debian Automated Code Analysis

checkbashisms analysis of bacula_5.0.2-2.2.dsc

possible bashism in ./platforms/osx/resources/postflight.in line 3 ('function' is useless):
function genpw() {
possible bashism in ./platforms/osx/resources/postflight.in line 26 ($HOST(TYPE|NAME)):
  sed \
    -e "s,@DIR_PW@,$DIR_PW,g" \
    -e "s,@FD_PW@,$FD_PW,g" \
    -e "s,@SD_PW@,$SD_PW,g" \
    -e "s,@MON_DIR_PW@,$MON_DIR_PW,g" \
    -e "s,@MON_FD_PW@,$MON_FD_PW,g" \
    -e "s,@MON_SD_PW@,$MON_SD_PW,g" \
    -e "s,@BASENAME@,$HOSTNAME,g" \
    -e "s,@HOSTNAME@,$HOSTNAME,g" \
    "$3@PREFIX@/etc/bacula-fd.conf.example" > "$3@FD_CONF@"
possible bashism in ./platforms/slackware/local-install.sh line 29 (should be 'b = a'):
   if [ ! "$COUNT" == "0" ] ; then
possible bashism in ./platforms/slackware/local-install.sh line 30 (echo -e):
      echo -e "\tBacula autostart section appears to be already installed.\n\tIf you have changed the configuration, make uninstall-autostart\n\tthen make install-autostart again.\n"
possible bashism in ./platforms/slackware/local-install.sh line 35 (echo -e):
            echo -e "\tBackup copy of $TARG saved in $TARG.bak."
possible bashism in ./platforms/slackware/local-install.sh line 37 (echo -e):
            echo -e "\tWARNING: Unable to create backup copy of $TARG.\n\tAttempting to continue anyway.";
possible bashism in ./platforms/slackware/local-install.sh line 55 (echo -e):
         echo -e "\tBacula autostart section has been installed in $TARG.\n";
possible bashism in ./platforms/slackware/local-install.sh line 57 (echo -e):
         echo -e "\tERROR!  Cannot write to $TARG.\n\tBailing out.\n"
possible bashism in ./platforms/slackware/local-install.sh line 64 (should be 'b = a'):
   if [ ! "$COUNT" == "2" ] ; then
possible bashism in ./platforms/slackware/local-install.sh line 65 (echo -e):
      echo -e "\tCould not find Bacula autostart section in $TARG.  Bailing out.\n"
possible bashism in ./platforms/slackware/local-install.sh line 71 (echo -e):
            echo -e "\tBackup copy of $TARG saved in $TARG.bak."
possible bashism in ./platforms/slackware/local-install.sh line 73 (echo -e):
            echo -e "\tWARNING: Unable to create backup copy of $TARG.\n\tAttempting to continue anyway.";
possible bashism in ./platforms/slackware/local-install.sh line 83 (echo -e):
         echo -e "\tBacula autostart section has been removed from $TARG.\n";
possible bashism in ./platforms/slackware/local-install.sh line 87 (echo -e):
   echo -e "\tUSAGE: $0 install|remove [destdir]"
possible bashism in ./examples/nagios/check_bacula_pools.sh line 134 ('$[' should be '$(('):
CAPA_REQUIRED=$[CAPA_REQUIRED+MAX_VOLUME_JOB_FOR_LEVEL]
possible bashism in ./examples/nagios/check_bacula_pools.sh line 139 ('$[' should be '$(('):
CAPA_WARNING=`echo $[(WARNING+100)*CAPA_REQUIRED]/100 | bc | cut -f 1 -d '.'`
possible bashism in ./examples/nagios/check_bacula_pools.sh line 140 ('$[' should be '$(('):
CAPA_CRITICAL=`echo $[(CRITICAL+100)*CAPA_REQUIRED]/100 | bc | cut -f 1 -d '.'`
possible bashism in ./examples/nagios/check_bacula_pools.sh line 141 ('$[' should be '$(('):
CAPA_DISP=$[NB_VOLUMES_OUT_OF_RETENTION*AVERAGE_CAPA_VOLUME+CAPA_VOLUMES_APPEND]
possible bashism in ./examples/nagios/check_bacula_pools.sh line 142 ('$[' should be '$(('):
CAPA_DISP_INCLUDING_SCRATCH=$[CAPA_DISP+CAPA_VOLUMES_SCRATCH]
possible bashism in ./examples/nagios/check_bacula_pools.sh line 144 ('$[' should be '$(('):
MESSAGE="Required : $[CAPA_REQUIRED/1000000000] Go, available : $[CAPA_DISP/1000000000] Go, Volumes Error : $NB_VOLUMES_ERROR"
possible bashism in ./examples/reports/check_bacula_pools.sh line 101 ('$[' should be '$(('):
CAPA_REQUIRED=$[CAPA_REQUIRED+MAX_VOLUME_JOB_FOR_LEVEL]
possible bashism in ./examples/reports/check_bacula_pools.sh line 150 ('$[' should be '$(('):
CAPA_WARNING=`echo $[(WARNING+100)*CAPA_REQUIRED]/100 | bc | cut -f 1 -d '.'`
possible bashism in ./examples/reports/check_bacula_pools.sh line 151 ('$[' should be '$(('):
CAPA_CRITICAL=`echo $[(CRITICAL+100)*CAPA_REQUIRED]/100 | bc | cut -f 1 -d '.'`
possible bashism in ./examples/reports/check_bacula_pools.sh line 152 ('$[' should be '$(('):
CAPA_DISP=$[NB_VOLUMES_OUT_OF_RETENTION*AVERAGE_CAPA_VOLUME+CAPA_VOLUMES_APPEND]
possible bashism in ./examples/reports/check_bacula_pools.sh line 153 ('$[' should be '$(('):
CAPA_DISP_INCLUDING_SCRATCH=$[CAPA_DISP+CAPA_VOLUMES_SCRATCH]
possible bashism in ./examples/reports/check_bacula_pools.sh line 155 ('$[' should be '$(('):
MESSAGE="Required : $[CAPA_REQUIRED/1000000000] Go, available : $[CAPA_DISP/1000000000] Go, Volumes Error : $NB_VOLUMES_ERROR"

This report was generated on Sun, 19 Dec 2010 00:10:02 +0000, based on results by checkbashisms 2.10.65git5