Open Mte90 opened 1 week ago
So this code has various issues:
pub func is_command(command: Text): Bool { if (unsafe $command -v "{command} > /dev/null) { return true } return false } pub fun make_executable(path: Text): Bool { if file_exist(origin) { unsafe $chmod +x "{path}"$ return true } echo "The file {$path} doesn't exist!" return false } pub fun is_root(): Bool { id = unsafe $id -u if (id == 0) { return true } return false }
But amber just report:
ERROR Unclosed command literal at [unknown]:25:1 24| } 25|
We have 2 issues:
literal
So this code has various issues:
But amber just report:
We have 2 issues:
literal
was opened so it is missing context