eive-obsw/scripts/create-sw-update.sh
Robin Mueller 65a7d38f54
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit
adaptions for update sequence
2022-09-26 11:12:41 +02:00

18 lines
485 B
Bash
Executable File

#!/bin/bash
if [ -f eive-obsw-stripped ]; then
echo "No file eive-obsw-stripped found. Please ensure you are in the "
echo "build folder and the OBSW was built properly"
exit 1
fi
if [ -f obsw_version.txt ]; then
echo "No OBSW version file found."
echo "You can use the create-version-file.sh script to create it"
exit 1
fi
cmd="tar -cJvf eive-obsw.tar.xz eive-obsw-stripped obsw_version.txt"
echo "Running command ${cmd} to generate compressed SW update archive"
eval ${cmd}