Fix whitespace

This commit is contained in:
2023-03-21 11:35:41 -04:00
parent 0ca572dd50
commit a5273f347c

View File

@@ -151,9 +151,10 @@ parseInput() {
fi fi
long_opts="install:,build::,outputdir:,mcversion:,restorefile:,betapass:," long_opts="install:,build::,outputdir:,mcversion:,restorefile:,betapass:,"
long_opts+="service-type:,service:,services:,version,debug,help,uninstall," long_opts+="service-type:,service:,services:,"
long_opts+="version,debug,verbose,help,uninstall,tests,"
long_opts+="createrepo::,createrepo-webroot:,createrepo-user:," long_opts+="createrepo::,createrepo-webroot:,createrepo-user:,"
long_opts+="vncpass:,display:,container:,tests,compat,arch:,yes" long_opts+="vncpass:,display:,container:,compat,arch:,yes"
short_opts="+i:vb::dhus:c:" short_opts="+i:vb::dhus:c:"
# Redeclare DEBUG and catch permanently with getopt # Redeclare DEBUG and catch permanently with getopt
@@ -233,7 +234,7 @@ parseInput() {
echo "Version: $SCRIPTVERSION" echo "Version: $SCRIPTVERSION"
exit 0 exit 0
;; ;;
--debug|-d) --debug|-d|--verbose)
DEBUG=1 DEBUG=1
;; ;;
--help|-h) --help|-h)
@@ -1557,7 +1558,7 @@ disableCoW() {
[[ -d "$dir" ]] || execute mkdir -p "$dir" [[ -d "$dir" ]] || execute mkdir -p "$dir"
if [[ $(stat -f -c %T "$dir") == "btrfs" ]] && if [[ $(stat -f -c %T "$dir") == "btrfs" ]] &&
! lsattr -d "$dir" | cut -f1 -d" " | grep -q C && ! lsattr -d "$dir" | cut -f1 -d" " | grep -q C &&
execute "sudo chattr +C $dir"; then execute sudo chattr +C "$dir"; then
echo "Disabled btrfs CoW for $dir directory" echo "Disabled btrfs CoW for $dir directory"
fi fi
done done