tj / robo

Simple Go / YAML-based task runner for the team.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

robo is calling incorrect bash file when absolute paths are used

iu4u57k3 opened this issue · comments

This is the robo.yml file:

bak:
  summary: backup data
  script: /mnt/backup/sh/backup_data.sh

when I run robo bak,
it prints:

error: stat /home/coder/mnt/backup/sh/backup_data.sh: no such file or directory

robo must call:
/mnt/backup/sh/backup_data.sh

and not:
/home/coder/mnt/backup/sh/backup_data.sh

robo is converting all paths to relative path and ignores absolute path

Appreciate the bug report, sorry for this taking so long, haven't found the time.

v0.5.5 contains this fix.