mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 12:35:13 +00:00
switch code indentation to hard tabs
also update code guidelines.
This commit is contained in:
parent
70abf31bab
commit
7951645db5
@ -4,11 +4,7 @@ Style guidelines
|
|||||||
Indentation
|
Indentation
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Code must be indented using four spaces.
|
Code must be indented using hard tabs.
|
||||||
In vim, this can be accomplished using
|
|
||||||
|
|
||||||
set shiftwidth=4
|
|
||||||
set expandtab
|
|
||||||
|
|
||||||
Naming
|
Naming
|
||||||
------
|
------
|
||||||
|
6
tomb
6
tomb
@ -2029,9 +2029,8 @@ mount_tomb() {
|
|||||||
{ option_is_set -o } && {
|
{ option_is_set -o } && {
|
||||||
local oldmountopts=$MOUNTOPTS
|
local oldmountopts=$MOUNTOPTS
|
||||||
MOUNTOPTS="$(option_value -o)" }
|
MOUNTOPTS="$(option_value -o)" }
|
||||||
|
|
||||||
# TODO: safety check MOUNTOPTS
|
# TODO: safety check MOUNTOPTS
|
||||||
# safe_mount_options && \
|
# safe_mount_options &&
|
||||||
_sudo mount -o $MOUNTOPTS /dev/mapper/${mapper} ${tombmount}
|
_sudo mount -o $MOUNTOPTS /dev/mapper/${mapper} ${tombmount}
|
||||||
# Clean up if the mount failed
|
# Clean up if the mount failed
|
||||||
[[ $? == 0 ]] || {
|
[[ $? == 0 ]] || {
|
||||||
@ -3138,6 +3137,3 @@ EOF
|
|||||||
main "$@" || exit $? # Prevent `source tomb source` from exiting
|
main "$@" || exit $? # Prevent `source tomb source` from exiting
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# -*- tab-width: 4; indent-tabs-mode:nil; -*-
|
|
||||||
# vim: set shiftwidth=4 expandtab:
|
|
||||||
|
Loading…
Reference in New Issue
Block a user