Fix indetation problems.
This commit is contained in:
parent
adb2fcbe46
commit
722d9cf2fc
@ -41,6 +41,7 @@ case $1 in
|
|||||||
checkdep update-desktop-database
|
checkdep update-desktop-database
|
||||||
install_desktop ${@:2}
|
install_desktop ${@:2}
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
-r|--remove)
|
-r|--remove)
|
||||||
checkdep update-desktop-database
|
checkdep update-desktop-database
|
||||||
@ -49,15 +50,19 @@ case $1 in
|
|||||||
rm ~/.local/share/applications/archbox/$i
|
rm ~/.local/share/applications/archbox/$i
|
||||||
done
|
done
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
help_text
|
help_text
|
||||||
|
exit 0
|
||||||
;;
|
;;
|
||||||
-l|--list)
|
-l|--list)
|
||||||
archbox ls -1 --color=none /usr/share/applications
|
archbox ls -1 --color=none /usr/share/applications
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
-s|--list-installed)
|
-s|--list-installed)
|
||||||
ls -1 --color=none ~/.local/share/applications/archbox
|
ls -1 --color=none ~/.local/share/applications/archbox
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
checkdep zenity
|
checkdep zenity
|
||||||
@ -76,7 +81,6 @@ case $1 in
|
|||||||
--text "Select .desktop entries those you want to install" \
|
--text "Select .desktop entries those you want to install" \
|
||||||
--column "Select" --column "Applications" \
|
--column "Select" --column "Applications" \
|
||||||
FALSE $zenity_entry | sed 's/|/\ /g')
|
FALSE $zenity_entry | sed 's/|/\ /g')
|
||||||
echo $selected_entry
|
|
||||||
[[ -z $selected_entry ]] && exit 1
|
[[ -z $selected_entry ]] && exit 1
|
||||||
install_desktop $selected_entry
|
install_desktop $selected_entry
|
||||||
update-desktop-database
|
update-desktop-database
|
||||||
|
@ -81,23 +81,29 @@ case $1 in
|
|||||||
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
|
cp /usr/local/share/archbox/chroot_setup.bash $CHROOT/chroot_setup
|
||||||
echo $USER > /tmp/archbox_user
|
echo $USER > /tmp/archbox_user
|
||||||
chroot $CHROOT /bin/bash -c "/chroot_setup"
|
chroot $CHROOT /bin/bash -c "/chroot_setup"
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
-e|--enter)
|
-e|--enter)
|
||||||
storeenv
|
storeenv
|
||||||
copyresolv
|
copyresolv
|
||||||
$PRIV /usr/local/share/archbox/bin/archbox enter
|
$PRIV /usr/local/share/archbox/bin/archbox enter
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
--remount-run)
|
--remount-run)
|
||||||
$PRIV /usr/local/share/archbox/bin/remount_run
|
$PRIV /usr/local/share/archbox/bin/remount_run
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
--mount-runtime-only)
|
--mount-runtime-only)
|
||||||
$PRIV /usr/local/share/archbox/bin/remount_run runtimeonly
|
$PRIV /usr/local/share/archbox/bin/remount_run runtimeonly
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
help_text
|
help_text
|
||||||
|
exit 0
|
||||||
;;
|
;;
|
||||||
"")
|
"")
|
||||||
help_text
|
help_text
|
||||||
|
exit 1
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
err "Unknown option: $1"
|
err "Unknown option: $1"
|
||||||
@ -106,5 +112,6 @@ case $1 in
|
|||||||
storeenv
|
storeenv
|
||||||
copyresolv
|
copyresolv
|
||||||
$PRIV /usr/local/share/archbox/bin/archbox $@
|
$PRIV /usr/local/share/archbox/bin/archbox $@
|
||||||
|
exit $?
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user