Loading sync.sh +2 −1 Original line number Diff line number Diff line Loading @@ -38,8 +38,9 @@ if [ -n "$OPENWRT_GIT_URL" ]; then git pull -q || die "Couldn't pull repo" LC_ALL=C.UTF-8 rsync -qax --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ || die "Couldn't rsync config" git add -A > /dev/null || die "Couldn't add files" find overlay/ -type d -empty -exec touch {}/.gitkeep \; git add -A > /dev/null || die "Couldn't add files" if [ -n "$(git status -su)" ]; then warning "Updating at $(date -u)" git commit -q -m OpenWRT || die "Couldn't commit changes" Loading Loading
sync.sh +2 −1 Original line number Diff line number Diff line Loading @@ -38,8 +38,9 @@ if [ -n "$OPENWRT_GIT_URL" ]; then git pull -q || die "Couldn't pull repo" LC_ALL=C.UTF-8 rsync -qax --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ || die "Couldn't rsync config" git add -A > /dev/null || die "Couldn't add files" find overlay/ -type d -empty -exec touch {}/.gitkeep \; git add -A > /dev/null || die "Couldn't add files" if [ -n "$(git status -su)" ]; then warning "Updating at $(date -u)" git commit -q -m OpenWRT || die "Couldn't commit changes" Loading