diff --git a/scripts/common.just b/scripts/common.just index 8571ad7..0ed7810 100644 --- a/scripts/common.just +++ b/scripts/common.just @@ -1,12 +1,12 @@ # Installation command -[no-cd, private] +[private] install-cmd options src dest: - install {{options}} {{src}} {{dest}} + install {{options}} {{ invocation_directory() }}/{{src}} {{ invocation_directory() }}/{{dest}} -[no-cd, private] +[private] install-bin src dest: (install-cmd '-Dm0755' src dest) -[no-cd, private] +[private] install-file src dest: (install-cmd '-Dm0644' src dest) # Check if required dependencies are installed on the system @@ -45,4 +45,4 @@ dep-lib lib: # Display a formatted error for the user. [private] print-error msg key value: - @echo '\e[0;31mERROR {{msg}}, \e[1;31m{{key}}: \e[0;31m{{value}}\e[0m' \ No newline at end of file + @echo '\e[0;31mERROR {{msg}}, \e[1;31m{{key}}: \e[0;31m{{value}}\e[0m'