diff --git a/bash/alias/bash.sh b/bash/alias/bash.sh index f363670..aaa10ca 100644 --- a/bash/alias/bash.sh +++ b/bash/alias/bash.sh @@ -4,7 +4,7 @@ cd \ .. \ " -# change current directory to its parent's parent +# change current directory to its parent’s parent alias ...="\ cd \ ../.. \ diff --git a/bash/alias/ls.sh b/bash/alias/ls.sh index 952bc85..b6d3204 100644 --- a/bash/alias/ls.sh +++ b/bash/alias/ls.sh @@ -2,7 +2,7 @@ export LS_COLORS="\ di=0;94\ " -# list current directory's entries +# list current directory’s entries alias l="\ ls \ --all \ diff --git a/bash/alias/pass.sh b/bash/alias/pass.sh index f01c653..1f48255 100644 --- a/bash/alias/pass.sh +++ b/bash/alias/pass.sh @@ -1,4 +1,4 @@ -# display pass entry's content +# display pass entry’s content alias p="\ pass \ " diff --git a/bash/mount-lxc.sh b/bash/mount-lxc.sh index a0b3ace..2cc5a7e 100644 --- a/bash/mount-lxc.sh +++ b/bash/mount-lxc.sh @@ -1,31 +1,31 @@ -function mrc { +mrc() { local container="${1}" local f - for f in 'dev' 'dev/pts' 'proc' 'sys' ; do + for f in "dev" "dev/pts" "proc" "sys" ; do mount --bind "/${f}" "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}" done } -function crc { +crc() { local container="${1}" shift chroot "overlay/mount/var/lib/lxc/${container}/squashfs-root" "${@}" } -function urc { +urc() { local container="${1}" - for f in 'sys' 'proc' 'dev/pts' 'dev' ; do + for f in "sys" "proc" "dev/pts" "dev" ; do umount --lazy "overlay/mount/var/lib/lxc/${container}/squashfs-root/${f}" done } -function mmc { +mmc() { local container="${1}" - mount --bind '/deb' "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb" + mount --bind "/deb" "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb" } -function umc { +umc() { local container="${1}" umount "overlay/mount/var/lib/lxc/${container}/squashfs-root/deb" } diff --git a/bash/mount.sh b/bash/mount.sh index c3ee8a3..5fe26a7 100644 --- a/bash/mount.sh +++ b/bash/mount.sh @@ -1,4 +1,4 @@ -function mo { +mo() { local directory="${1}" local file if [ "${directory}" ] ; then @@ -18,7 +18,7 @@ else fi } -function uo { +uo() { cd 'overlay' if umount 'mount' ; then rmdir 'mount' @@ -32,7 +32,7 @@ rmdir 'overlay' } -function mr { +mr() { for f in 'dev' 'dev/pts' 'proc' 'sys' ; do mount --bind "/${f}" "overlay/mount/${f}" done @@ -49,23 +49,23 @@ chroot \ \"overlay/mount\" \ " -function ur { +ur() { for f in 'sys' 'proc' 'dev/pts' 'dev' ; do umount --lazy "overlay/mount/${f}" done } -function mm { +mm() { mount --make-rslave --rbind '/deb' 'overlay/mount/deb' } -function um { +um() { umount --recursive 'overlay/mount/deb' } -function ms { +ms() { local directory="${1}" local level="${2}" if [ "${directory}" ] ; then