2
0
mirror of https://github.com/qarmin/czkawka synced 2024-11-18 03:25:36 +00:00
czkawka/misc/cargo/PublishCore.sh

25 lines
443 B
Bash
Raw Normal View History

#!/bin/bash
2020-12-02 11:01:30 +00:00
NUMBER="1.5.0"
CZKAWKA_PATH="/home/rafal"
cd "$CZKAWKA_PATH"
CZKAWKA_PATH="$CZKAWKA_PATH/czkawka"
rm -rf $CZKAWKA_PATH
git clone https://github.com/qarmin/czkawka.git "$CZKAWKA_PATH"
cd $CZKAWKA_PATH
git checkout "$NUMBER"
cd "$CZKAWKA_PATH/czkawka_core"
cargo package
if [ $(echo $?) != "0" ]
then
echo "Cargo package failed CORE"
exit 1
fi
git reset --hard
cd "$CZKAWKA_PATH/czkawka_core"
cargo publish
git reset --hard