intracom-telecom-sdn/nstat

View on GitHub
monitors/oftraf/build.sh

Summary

Maintainability
Test Coverage

Showing 9 of 9 total issues

Double quote to prevent globbing and word splitting.
Open

echo $SCRIPT_DIR
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

if [ ! -d $SCRIPT_DIR"/oftraf" ]; then
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

mv $SCRIPT_DIR/oftraf/* $SCRIPT_DIR
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

git clone -b v.1.0 $OFTRAF_LOCATION $SCRIPT_DIR"/oftraf"
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

rm -rf $SCRIPT_DIR/oftraf
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

mv $SCRIPT_DIR/oftraf/* $SCRIPT_DIR
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Double quote to prevent globbing and word splitting.
Open

rm -rf $SCRIPT_DIR"/oftraf/.git"
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
Open

if [ $? -ne 0 ]; then
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck

Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
Open

if [ $? -ne 0 ]; then
Severity: Minor
Found in monitors/oftraf/build.sh by shellcheck
Category
Status