mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 04:25:12 +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
|
||||
-----------
|
||||
|
||||
Code must be indented using four spaces.
|
||||
In vim, this can be accomplished using
|
||||
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
Code must be indented using hard tabs.
|
||||
|
||||
Naming
|
||||
------
|
||||
|
6
tomb
6
tomb
@ -2029,9 +2029,8 @@ mount_tomb() {
|
||||
{ option_is_set -o } && {
|
||||
local oldmountopts=$MOUNTOPTS
|
||||
MOUNTOPTS="$(option_value -o)" }
|
||||
|
||||
# TODO: safety check MOUNTOPTS
|
||||
# safe_mount_options && \
|
||||
# safe_mount_options &&
|
||||
_sudo mount -o $MOUNTOPTS /dev/mapper/${mapper} ${tombmount}
|
||||
# Clean up if the mount failed
|
||||
[[ $? == 0 ]] || {
|
||||
@ -3138,6 +3137,3 @@ EOF
|
||||
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