diff options
Diffstat (limited to 'subx/g')
-rwxr-xr-x | subx/g | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/subx/g b/subx/g index dc57cceb..25da2232 100755 --- a/subx/g +++ b/subx/g @@ -3,12 +3,17 @@ if [ $# -eq 0 ] then - echo "g <git command> <args> <suffix>" + echo "g <git command> <args> <target>" exit 1 fi arg=( $* ) -suffix=$arg[${#arg[@]}] +target=$arg[${#arg[@]}] unset "arg[${#arg[@]}]" -git ${arg[@]} ./teensy/test$suffix*.[cs] +if [[ $target == 'test'* ]] +then + git ${arg[@]} ./teensy/$target*.[cs] +else + git ${arg[@]} ./$target*.subx +fi |