update folders
This commit is contained in:
8
snipplets/code/Crystal/value_from_match.cr
Normal file
8
snipplets/code/Crystal/value_from_match.cr
Normal file
@@ -0,0 +1,8 @@
|
||||
test_string_1 = "rw------- (0o600)"
|
||||
# test_string_2 = "rwx------ (0o700)"
|
||||
|
||||
if /\d{3}/.match(test_string_1).try &.[0] != "600"
|
||||
puts "Password file permissions is not RW for you.".colorize(:red)
|
||||
|
||||
exit(0)
|
||||
end
|
||||
Reference in New Issue
Block a user