Bash Script to start custom Groovy Scripts everywhere


/ Published in: Groovy
Save to your folder(s)

Put this script in your path and you can start your scripts located in ~/.groovy/scripts from everywhere.

Tags: Bash, Linux, Groovy


Copy this code and paste it in your HTML
  1. #!/bin/bash
  2.  
  3. script=$1
  4. shift
  5.  
  6. groovy ~/.groovy/scripts/$script $@

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.