# git
GIT=lkh@git.amisw.com

# Get scripts directory from git and put them in each img
echo "Get scripts dir"
mkdir tmp
cd tmp
git archive --format=tar --remote $GIT:/opt/git/Ami -o scripts.tar master scripts/ >/dev/null 2>&1
rm -rf scripts; mkdir -p scripts; chmod 777 scripts ; tar xf scripts.tar ; rm -f scripts.tar
rm -rf ../scripts/scripts
mv scripts ../scripts
cd ..

rm -rf tmp

rm -rf amibin/scripts 
mv scripts amibin
