Fix indetation problems.

This commit is contained in:
lemniskett 2020-12-31 23:16:31 +07:00
parent adb2fcbe46
commit 722d9cf2fc
4 changed files with 95 additions and 84 deletions

View File

@ -41,6 +41,7 @@ case $1 in
checkdep update-desktop-database
install_desktop ${@:2}
update-desktop-database
exit $?
;;
-r|--remove)
checkdep update-desktop-database
@ -49,15 +50,19 @@ case $1 in
rm ~/.local/share/applications/archbox/$i
done
update-desktop-database
exit $?
;;
-h|--help)
help_text
exit 0
;;
-l|--list)
archbox ls -1 --color=none /usr/share/applications
exit $?
;;
-s|--list-installed)
ls -1 --color=none ~/.local/share/applications/archbox
exit $?
;;
*)
checkdep zenity
@ -76,7 +81,6 @@ case $1 in
--text "Select .desktop entries those you want to install" \
--column "Select" --column "Applications" \
FALSE $zenity_entry | sed 's/|/\ /g')
echo $selected_entry
[[ -z $selected_entry ]] && exit 1
install_desktop $selected_entry
update-desktop-database

View File

@ -81,23 +81,29 @@ case $1 in
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
echo $USER > /tmp/archbox_user
chroot $CHROOT /bin/bash -c "/chroot_setup"
exit $?
;;
-e|--enter)
storeenv
copyresolv
$PRIV /usr/local/share/archbox/bin/archbox enter
exit $?
;;
--remount-run)
$PRIV /usr/local/share/archbox/bin/remount_run
exit $?
;;
--mount-runtime-only)
$PRIV /usr/local/share/archbox/bin/remount_run runtimeonly
exit $?
;;
-h|--help)
help_text
exit 0
;;
"")
help_text
exit 1
;;
-*)
err "Unknown option: $1"
@ -106,5 +112,6 @@ case $1 in
storeenv
copyresolv
$PRIV /usr/local/share/archbox/bin/archbox $@
exit $?
;;
esac