ansible-desktop/roles/prusa-slicer/files/usr/local/bin/prusa-slicer.wrapper

20 lines
308 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
CONFIG_PATH="${HOME}/.config/PrusaSlicer"
CURRENT_DIR=$(pwd)
BIN_PATH=/usr/local/bin
cd "$CONFIG_PATH" && \
git pull
cd "${CURRENT_DIR}"
"${BIN_PATH}/prusa-slicer.real"
cd "${CONFIG_PATH}" && \
git add . && \
git commit -m "$(date +%Y.%m.%d\ %H:%M)" && \
git push
cd "${CURRENT_DIR}"