mirror of
https://github.com/p8952/bocker.git
synced 2025-11-08 14:43:59 +01:00
Remove unneeded whitespace
This commit is contained in:
parent
3740778537
commit
b6653f6962
2
bocker
2
bocker
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -o errexit -o nounset -o pipefail; shopt -s nullglob
|
||||
btrfs_path='/var/bocker' && cgroups='cpu,cpuacct,memory';
|
||||
[[ $# -gt 0 ]] && while [ "${1:0:2}" == '--' ]; do OPTION=${1:2}; [[ $OPTION =~ = ]] && declare "BOCKER_${OPTION/=*/}=${OPTION/*=/}" || declare "BOCKER_${OPTION}=x"; shift; done
|
||||
[[ $# -gt 0 ]] && while [ "${1:0:2}" == '--' ]; do OPTION=${1:2}; [[ $OPTION =~ = ]] && declare "BOCKER_${OPTION/=*/}=${OPTION/*=/}" || declare "BOCKER_${OPTION}=x"; shift; done
|
||||
|
||||
function bocker_check() {
|
||||
btrfs subvolume list "$btrfs_path" | grep -qw "$1" && echo 0 || echo 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user