mirror of https://github.com/Phantop/appdwarf.git
Fix some small shellcheck issues
This commit is contained in:
parent
7c2862aa83
commit
9be8602ba7
3
appdwarf
3
appdwarf
|
@ -11,6 +11,7 @@ apprun() {
|
||||||
bundlehead() {
|
bundlehead() {
|
||||||
MOUNTBIN=$(mktemp) # use provided offsets to supply dwarfs binary
|
MOUNTBIN=$(mktemp) # use provided offsets to supply dwarfs binary
|
||||||
tail -n+"$OFF" "$0" | head -n"$LEN" | head -c-1 | zstd -cqd > "$MOUNTBIN"
|
tail -n+"$OFF" "$0" | head -n"$LEN" | head -c-1 | zstd -cqd > "$MOUNTBIN"
|
||||||
|
#shellcheck disable=SC2317
|
||||||
dwarfs() { chmod +x "$MOUNTBIN"; "$MOUNTBIN" "$@"; rm "$MOUNTBIN"; }
|
dwarfs() { chmod +x "$MOUNTBIN"; "$MOUNTBIN" "$@"; rm "$MOUNTBIN"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +131,7 @@ if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage
|
||||||
if aria2c -x16 -s16 "$1" -o "$app" || wget "$1" -O "$app"; then
|
if aria2c -x16 -s16 "$1" -o "$app" || wget "$1" -O "$app"; then
|
||||||
shift
|
shift
|
||||||
set -- "$app" "$@"
|
set -- "$app" "$@"
|
||||||
test $FETCH && chmod +x "$1" && exit
|
test "$FETCH" && chmod +x "$1" && exit
|
||||||
else
|
else
|
||||||
tput setaf 1; echo "No valid remote or local input found. Exiting..." >&2
|
tput setaf 1; echo "No valid remote or local input found. Exiting..." >&2
|
||||||
rm -f "$app"; exit 1
|
rm -f "$app"; exit 1
|
||||||
|
|
|
@ -11,7 +11,7 @@ mv "$DIR"/wine*/* "$DIR"/GE-Proton*/files/* "$DIR"/lutris*/* "$DIR" || true
|
||||||
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
t=winetricks; wget -O"$DIR"/bin/$t github.com/$t/$t/raw/master/src/$t
|
||||||
chmod +x "$DIR"/bin/$t
|
chmod +x "$DIR"/bin/$t
|
||||||
|
|
||||||
if [ $PREFIX ]; then
|
if [ "$PREFIX" ]; then
|
||||||
WINEPREFIX="$DIR/prefix" "$DIR/bin/wine" cmd /c exit
|
WINEPREFIX="$DIR/prefix" "$DIR/bin/wine" cmd /c exit
|
||||||
cat > "$DIR/AppRun" << 'EOF'
|
cat > "$DIR/AppRun" << 'EOF'
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
Loading…
Reference in New Issue