mirror of
https://github.com/mfontanini/presenterm.git
synced 2025-05-05 15:32:58 +00:00
Edd .editorconfig for *.sh and format shell scripts
This commit is contained in:
parent
d7dc027769
commit
d329243637
3
.editorconfig
Normal file
3
.editorconfig
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[*.sh]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ $# -ne 1 ]
|
if [ $# -ne 1 ]; then
|
||||||
then
|
echo "Usage: $0 <bat-git-hash>"
|
||||||
echo "Usage: $0 <bat-git-hash>"
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
script_path=$(realpath "$0")
|
script_path=$(realpath "$0")
|
||||||
@ -23,8 +22,7 @@ cp assets/themes.bin "$script_dir"
|
|||||||
|
|
||||||
acknowledgements_file="$script_dir/acknowledgements.txt"
|
acknowledgements_file="$script_dir/acknowledgements.txt"
|
||||||
cp LICENSE-MIT "$acknowledgements_file"
|
cp LICENSE-MIT "$acknowledgements_file"
|
||||||
zlib-flate -uncompress < assets/acknowledgements.bin >> "$acknowledgements_file"
|
zlib-flate -uncompress <assets/acknowledgements.bin >>"$acknowledgements_file"
|
||||||
echo "$git_hash" > "$script_dir/bat.git-hash"
|
echo "$git_hash" >"$script_dir/bat.git-hash"
|
||||||
|
|
||||||
echo "syntaxes/themes updated"
|
echo "syntaxes/themes updated"
|
||||||
|
|
||||||
|
@ -12,15 +12,13 @@ git clone https://github.com/sharkdp/bat.git "$clone_path"
|
|||||||
cd "$clone_path"
|
cd "$clone_path"
|
||||||
git reset --hard "$git_hash"
|
git reset --hard "$git_hash"
|
||||||
|
|
||||||
for file in syntaxes.bin themes.bin
|
for file in syntaxes.bin themes.bin; do
|
||||||
do
|
our_hash=$(sha256sum "$script_dir/$file" | cut -d " " -f1)
|
||||||
our_hash=$(sha256sum "$script_dir/$file" | cut -d " " -f1)
|
their_hash=$(sha256sum "$clone_path/assets/$file" | cut -d " " -f 1)
|
||||||
their_hash=$(sha256sum "$clone_path/assets/$file" | cut -d " " -f 1)
|
if [ "$our_hash" != "$their_hash" ]; then
|
||||||
if [ "$our_hash" != "$their_hash" ]
|
echo "Unexpected hash for ${file}: should be ${their_hash}, is ${our_hash}"
|
||||||
then
|
exit 1
|
||||||
echo "Unexpected hash for ${file}: should be ${their_hash}, is ${our_hash}"
|
fi
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All hashes match"
|
echo "All hashes match"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user