diff options
Diffstat (limited to 'main.v')
| -rw-r--r-- | main.v | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -60,5 +60,14 @@ fn main() { println('Welcome to vbackup!') println('Current timestamp: ' + get_timestamp()) + + if !os.exists('/usr/bin/tar') || !os.exists('/bin/tar') { + println('We could not find tar on your system, please make sure its available under /bin or /usr/bin') + exit(127) + } else { + println('tar is available') + } + + println('--- --- --- ---') vbackup_cmd.parse(os.args) } |
