Skip to content

Commit

Permalink
Uncommitted fix + version bump to fix the resultant bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobmaker55 committed Aug 25, 2023
1 parent 5f4c9fb commit 49c721b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ user = "coolUser" # Main user for the image
# if re-used, is compatible with the version of aeacus being used.
#
# You can print your version of aeacus with ./aeacus version.
version = "2.1.0"
version = "2.1.1"

[[check]]
message = "Removed insecure sudoers rule"
Expand Down
8 changes: 4 additions & 4 deletions checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ func runCheck(cond cond) bool {
return false
}
condFunc = cond.Type
if cond.Type[len(cond.Type)-len(not):len(cond.Type)] == not {
if condFunc[len(condFunc)-len(not):] == not {
negation = true
condFunc = cond.Type[:len(cond.Type)-len(not)]
condFunc = condFunc[:len(condFunc)-len(not)]
}
if cond.Type[len(cond.Type)-len(regex):len(cond.Type)] == regex {
if condFunc[len(condFunc)-len(regex):] == regex {
cond.regex = true
condFunc = cond.Type[:len(cond.Type)-len(regex)]
condFunc = condFunc[:len(condFunc)-len(regex)]
}

// Catch panic if check type doesn't exist
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/linux-remote.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "linux-remote" # Name of image
title = "A Practice Round" # Title of Round
user = "sha" # Main user, used for sending notifications
os = "Ubuntu 20.04" # Operating system, used for README
version = "2.1.0" # The version of aeacus you're using
version = "2.1.1" # The version of aeacus you're using

# If remote is specified, aeacus will report its score and refuse to score if
# the remote server does not accept its messages and Team ID (unless "local" is
Expand Down
2 changes: 1 addition & 1 deletion utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
version = "2.1.0"
version = "2.1.1"
)

var (
Expand Down

0 comments on commit 49c721b

Please sign in to comment.