mirror of
https://github.com/Phantop/appdwarf.git
synced 2025-01-09 05:37:04 +00:00
appdwarf: short fetch option, better help
This commit is contained in:
parent
86cc5317c1
commit
f180a2962d
14
appdwarf
14
appdwarf
|
@ -81,7 +81,7 @@ case "$1" in
|
||||||
mv "$tmp" "$2"
|
mv "$tmp" "$2"
|
||||||
chmod +x "$2"
|
chmod +x "$2"
|
||||||
exit ;;
|
exit ;;
|
||||||
--fetch )
|
-f | --fetch )
|
||||||
FETCH=1
|
FETCH=1
|
||||||
shift ;;
|
shift ;;
|
||||||
-p | -z | --prefix | --zzexe )
|
-p | -z | --prefix | --zzexe )
|
||||||
|
@ -93,16 +93,16 @@ case "$1" in
|
||||||
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
|
echo "Usage: appdwarf [option] [APP/FILE/FOLDER/URL] [compression options]"
|
||||||
echo " -a [FILE] write example AppRun file"
|
echo " -a [FILE] write example AppRun file"
|
||||||
echo " -b [FILE] write bin subdir AppRun file"
|
echo " -b [FILE] write bin subdir AppRun file"
|
||||||
echo " -d [--decompress] [FILE] decompress a compressed program"
|
echo " -d, --decompress [FILE] decompress a compressed program"
|
||||||
echo
|
echo
|
||||||
echo " --bundle [path/to/dwarfs] bundle dwarfs with the appdwarf image"
|
echo " --bundle [path/to/dwarfs] bundle dwarfs with the appdwarf image"
|
||||||
echo " --fetch only fetch a remote AppImage"
|
echo " -f, --fetch only fetch a remote AppImage"
|
||||||
echo
|
echo
|
||||||
echo " -p [--prefix] [PREFIX] zzexe a file with prefix"
|
echo " -p, --prefix] [PREFIX] zzexe a file with prefix"
|
||||||
echo " -z [--zzexe] zzexe a file"
|
echo " -z, --zzexe zzexe a file"
|
||||||
echo
|
echo
|
||||||
echo " -h, --help Print this help text"
|
echo " -h, --help] Print this help text"
|
||||||
echo " -v, --version Print the appdwarf version"; exit ;;
|
echo " -v, --version] Print the appdwarf version"; exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage
|
if [ ! -d "$1" ]; then # directory doesn't exist, see if this is an appimage
|
||||||
|
|
Loading…
Reference in a new issue