fix insert

This commit is contained in:
Maksim Totmin 2024-05-20 11:09:07 +07:00
parent ef77abb71a
commit cf9257872b

2
note
View File

@ -114,7 +114,7 @@ fi
check_sneaky_paths() { check_sneaky_paths() {
local path local path
for path in "$@"; do for path in "$@"; do
[[ $path =~ /\.\.$ || $path =~ ^\.\./ || $path =~ /\.\./ || $path =~ ^\.\.$ ]] && die "Error: You've attempted to pass a sneaky path to pass. Go home." [[ $path =~ /\.\.$ || $path =~ ^\.\./ || $path =~ /\.\./ || $path =~ ^\.\.$ ]] && die "Error: You've attempted to note a sneaky path to note. Go home."
done done
} }