use sh by default - may cause issues

This commit is contained in:
'mr software' 2023-07-12 17:33:05 -07:00
parent 6b13120fb1
commit 0cbee4f146
1 changed files with 3 additions and 1 deletions

4
main
View File

@ -1,3 +1,5 @@
#!/bin/sh
[ -z "$EDITOR" ] && echo '$EDITOR not set' && exit [ -z "$EDITOR" ] && echo '$EDITOR not set' && exit
BROWSER=firefox BROWSER=firefox
@ -110,7 +112,7 @@ if [ "$(jq .map_to_resources $MDIR/assets/indexes/$(basename $VERSION_ASSETS))"
else else
for OBJ in `jq -r .objects[].hash "$MDIR/assets/indexes/$(basename $VERSION_ASSETS)"`; do for OBJ in `jq -r .objects[].hash "$MDIR/assets/indexes/$(basename $VERSION_ASSETS)"`; do
mkdir -p "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)" mkdir -p "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)"
[ ! $(sha1sum "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)/$OBJ" | cut -f 1 -d ' ') = $OBJ ] && dbrun wget -c "https://resources.download.minecraft.net/$(echo $OBJ | cut -b 1,2)/$OBJ" -qO "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)/$OBJ" [ ! $(sha1sum "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)/$OBJ" 2>&1 | cut -f 1 -d ' ') = $OBJ ] && dbrun wget -c "https://resources.download.minecraft.net/$(echo $OBJ | cut -b 1,2)/$OBJ" -qO "$MDIR/assets/objects/$(echo $OBJ | cut -b 1,2)/$OBJ"
done done
fi fi