switch code indentation to hard tabs

also update code guidelines.
This commit is contained in:
Jaromil 2018-01-03 20:27:14 +01:00
parent 70abf31bab
commit 7951645db5
2 changed files with 1975 additions and 1983 deletions

View File

@ -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
View File

@ -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: