Fixed indentation on bash scripts
This commit is contained in:
parent
030af218fb
commit
b26d08ba30
9
kvm.sh
9
kvm.sh
|
|
@ -101,15 +101,12 @@ _kvm_unpack() {
|
||||||
#Set shell commands as executable
|
#Set shell commands as executable
|
||||||
find "$kreFolder/bin/" -type f \
|
find "$kreFolder/bin/" -type f \
|
||||||
-exec sh -c "head -c 11 {} | grep '/bin/bash' > /dev/null" \; -print | xargs chmod 775
|
-exec sh -c "head -c 11 {} | grep '/bin/bash' > /dev/null" \; -print | xargs chmod 775
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is not currently required. Placeholder for the case when we have multiple platforms (ie if we bundle mono)
|
# This is not currently required. Placeholder for the case when we have multiple platforms (ie if we bundle mono)
|
||||||
_kvm_requested_platform() {
|
_kvm_requested_platform() {
|
||||||
local default=$1
|
local default=$1
|
||||||
|
|
||||||
[[ -z $KRE_MONO45 ]] && echo "mono45" && return
|
[[ -z $KRE_MONO45 ]] && echo "mono45" && return
|
||||||
|
|
||||||
echo $default
|
echo $default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,11 +115,8 @@ _kvm_requested_architecture() {
|
||||||
local default=$1
|
local default=$1
|
||||||
|
|
||||||
[[ -n $KRE_X86 && -n $KRE_X64 ]] && echo "This command cannot accept both -x86 and -x64" && return 1
|
[[ -n $KRE_X86 && -n $KRE_X64 ]] && echo "This command cannot accept both -x86 and -x64" && return 1
|
||||||
|
|
||||||
[[ -z $KRE_X86 ]] && echo "x86" && return
|
[[ -z $KRE_X86 ]] && echo "x86" && return
|
||||||
|
|
||||||
[[ -z $KRE_X64 ]] && echo "x64" && return
|
[[ -z $KRE_X64 ]] && echo "x64" && return
|
||||||
|
|
||||||
echo $default
|
echo $default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -254,7 +248,6 @@ kvm()
|
||||||
|
|
||||||
if [[ -n $persistent && -e "$KRE_USER_HOME/alias/default.alias" ]]; then
|
if [[ -n $persistent && -e "$KRE_USER_HOME/alias/default.alias" ]]; then
|
||||||
echo "Setting default KRE to none"
|
echo "Setting default KRE to none"
|
||||||
|
|
||||||
rm "$KRE_USER_HOME/alias/default.alias"
|
rm "$KRE_USER_HOME/alias/default.alias"
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
|
|
@ -285,7 +278,7 @@ kvm()
|
||||||
if [[ $# == 1 ]]; then
|
if [[ $# == 1 ]]; then
|
||||||
for f in $(find "$KRE_USER_HOME/alias" -name *.alias); do printf "%-20s %s\n" "$(basename $f | sed 's/.alias//')" "$(cat $f)"; done
|
for f in $(find "$KRE_USER_HOME/alias" -name *.alias); do printf "%-20s %s\n" "$(basename $f | sed 's/.alias//')" "$(cat $f)"; done
|
||||||
echo ""
|
echo ""
|
||||||
return;
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local name="$2"
|
local name="$2"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue