diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-09 06:52:03 +0300 |
commit | ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888 (patch) | |
tree | 38c4c4972844d8616f220aa65e00b265ff7945ec /bin/ak-profile | |
parent | 1a572d674b2c94bbe5b094f563c4875c77575227 (diff) | |
download | arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.gz arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.tar.bz2 arching-kaos-tools-ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888.zip |
Refactoring
Diffstat (limited to 'bin/ak-profile')
-rwxr-xr-x | bin/ak-profile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ak-profile b/bin/ak-profile index d513c9a..2fab750 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -81,7 +81,7 @@ _ak_modules_profile_propget(){ fi } -propwrite(){ +_ak_modules_profile_propwrite(){ cat > $ZPROPERTY_FILE << EOF { "$ZPROPERTY_KEY":"${ZPROPERTY_VALUE}" @@ -113,7 +113,7 @@ _ak_modules_profile_propset(){ then touch $ZPROPERTY_FILE echo "$ZPROPERTY_KEY = $ZPROPERTY_VALUE in file $ZPROPERTY_FILE" - propwrite #"$ZPROPERTY_FILE" "${ZPROPERTY_VALUE}" + _ak_modules_profile_propwrite #"$ZPROPERTY_FILE" "${ZPROPERTY_VALUE}" else echo "No value for $1" fi @@ -123,7 +123,7 @@ _ak_modules_profile_propset(){ ZPROPERTY_VALUE="$2" read -p "Overwrite $1 with ${ZPROPERTY_VALUE} ? " yn case $yn in - [Yy]* ) propwrite;;# "$ZPROPERTY_" "${ZPROPERTY_VALUE}";; + [Yy]* ) _ak_modules_profile_propwrite;;# "$ZPROPERTY_" "${ZPROPERTY_VALUE}";; [Nn]* ) exit 130;; * ) echo "Answer please";; esac |