diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-03-02 23:10:17 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-03-02 23:10:17 +0000 |
commit | 7ed24015281a826cb5d6ebff7c8b1d13d8be4e22 (patch) | |
tree | 3fe99d42b85dd08da17441a3117a302beb371a9e /cron-sh/scripts/03_rpm.sh | |
parent | dac3723fd8006e6946fbe1fdb8233a3716481b4d (diff) | |
download | msec-7ed24015281a826cb5d6ebff7c8b1d13d8be4e22.tar msec-7ed24015281a826cb5d6ebff7c8b1d13d8be4e22.tar.gz msec-7ed24015281a826cb5d6ebff7c8b1d13d8be4e22.tar.bz2 msec-7ed24015281a826cb5d6ebff7c8b1d13d8be4e22.tar.xz msec-7ed24015281a826cb5d6ebff7c8b1d13d8be4e22.zip |
using exit instead of return when checking if we are run from scripts
Diffstat (limited to 'cron-sh/scripts/03_rpm.sh')
-rwxr-xr-x | cron-sh/scripts/03_rpm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/scripts/03_rpm.sh b/cron-sh/scripts/03_rpm.sh index f303ee2..cf84d6e 100755 --- a/cron-sh/scripts/03_rpm.sh +++ b/cron-sh/scripts/03_rpm.sh @@ -6,7 +6,7 @@ if [ -z "$MSEC_TMP" -o -z "$INFOS" -o -z "$SECURITY" -o -z "$DIFF" -o -z "$SECUR # variables are set in security.sh and propagated to the subscripts echo "Error: this check should be run by the main msec security check!" echo " do not run it directly unless you know what you are doing." - return 1 + exit 1 fi export RPM_VA_TODAY="/var/log/security/rpm-va.${CURRENT_CHECK_TYPE}.today" |