songbird wrote:
> extra bonus points for it being able to grab things from git
> so i don't have to write anything to do that either.
...

  i've not had much time to dig into this but made a little
progress last night (yes, i know it's not pretty, but as
long as it works i can poke more at it later - for now
good enough is key):


#!/bin/bash


    readarray -t statuslist < <(   git --git-dir=${WEBSITE}/production/.git -C 
${HOMEANT}/production status --porcelain public)

    #echo "the elements of array: ${statuslist[@]}"

    for item in "${statuslist[@]}"
        do
        #echo "${item}"
        action=${item:0:1}
        value=${item:10}
        echo "Action : ${action}  Value : ${value}"
        done


  now to figure out what i have to do for lftp...



  and yes, i know of potential issues with strings, quoting or
whatever else that can end up in file names but that also isn't
anything i'm worried too much about as this is a controlled 
environment and not just a general directory structure.

  p.s. i'd not messed around with arrays before so it was fun
to poke at those.


  songbird

Reply via email to