#!/bin/bash

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