20 lines
308 B
Plaintext
20 lines
308 B
Plaintext
|
#!/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}"
|