commit 45f3fa50b1bdede4c7c7e4ac8fa77829af7bca27 parent 643a28e6574ca7e13235d27f08cd1c450ffd53f4 Author: Dimitrije Dobrota <mail@dimitrijedobrota.com> Date: Wed, 1 Jan 2025 20:56:35 +0100 Consolidate the deploy script Diffstat:
M | cabin-deploy.sh | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cabin-deploy.sh b/cabin-deploy.sh @@ -8,11 +8,11 @@ if [ "$#" -ne 2 ]; then exit 1 fi -src="$1" -dst="$2" +src="$(realpath $1)" +dst="$(realpath $2)" pushd "$src" || exit -find . -not -iname "*.md" -a -not -path "*.git*" -a -not -path "*.git*"| cpio -pvd "$dst" +find . -not -iname "*.md" -a -not -path "*.git*" -a -not -path "*.git*" | cpio -pd "$dst" 2>/dev/null popd || exit opt=()