Loading sync.sh +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ die() { exit 1 } rm -rf * || die "Couldn't remove files" rm -rvf * || die "Couldn't remove files" if [ -n "$OPENWRT_GIT_URL" ]; then Loading @@ -19,7 +19,7 @@ if [ -n "$OPENWRT_GIT_URL" ]; then git reset --hard || die "Couldn't reset repo" git pull || die "Couldn't pull repo" ( LC_ALL=C.UTF-8 rsync -a --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ | grep -v 'skipping' ) || die "Couldn't rsync config" ( LC_ALL=C.UTF-8 rsync -av --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ | grep -v 'skipping' ) || die "Couldn't rsync config" git add -A || die "Couldn't add files" if [ -n "$(git status -su)" ]; then Loading Loading
sync.sh +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ die() { exit 1 } rm -rf * || die "Couldn't remove files" rm -rvf * || die "Couldn't remove files" if [ -n "$OPENWRT_GIT_URL" ]; then Loading @@ -19,7 +19,7 @@ if [ -n "$OPENWRT_GIT_URL" ]; then git reset --hard || die "Couldn't reset repo" git pull || die "Couldn't pull repo" ( LC_ALL=C.UTF-8 rsync -a --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ | grep -v 'skipping' ) || die "Couldn't rsync config" ( LC_ALL=C.UTF-8 rsync -av --delete-after --exclude '*-opkg' -e "ssh -p ${OPENWRT_SSH_PORT:-22}" "${OPENWRT_SSH_HOST:-root@192.168.0.1}:/overlay/upper/" overlay/ | grep -v 'skipping' ) || die "Couldn't rsync config" git add -A || die "Couldn't add files" if [ -n "$(git status -su)" ]; then Loading