From ba1173c9ec87b14a6ba6772d5ebfaafb81c7f888 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 9 Jun 2024 06:52:03 +0300 Subject: Refactoring --- bin/ak-profile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/ak-profile') 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 -- cgit v1.2.3