#!/bin/bash

if ! cmp -s /tmp/android/${1}/version.txt /home/kushi/bundles-v363/android/${1}/version.txt; then
  # files differ...
  echo "Bundle ${1} updated"
  echo "${1}" >> /tmp/android.txt
#  mv /home/kushi/bundles-v363/android/${1}/ /home/kushi/bundles-v363/android/${1}_$(date +%Y%m%d_%H%M)
#  cp -R /tmp/android/${1} /home/kushi/bundles-v363/android/${1}
#  chmod 755 /home/kushi/bundles-v363/android/${1}
#  chown kushi:kushi /home/kushi/bundles-v363/android/${1}
fi
