Skip to content

Commit b7166ed

Browse files
authored
feat: update terminology
1 parent 3a480ff commit b7166ed

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

blueprint.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FOLDER=$(realpath "$(dirname "$0" 2> /dev/null)" 2> /dev/null) || FOLDER="$BLUEP
1717
OWNERSHIP="www-data:www-data" #;
1818
WEBUSER="www-data" #;
1919
USERSHELL="/bin/bash" #;
20-
SHORTCUT_PATH="/usr/local/bin"
20+
SHORTCUT_DIR="/usr/local/bin"
2121

2222
# Check if the script is being sourced - and if so - load bash autocompletion.
2323
if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
@@ -208,25 +208,25 @@ assignflags() {
208208
fi
209209
}
210210

211-
# Adds the "blueprint" command to the /usr/local/bin directory and configures the correct permissions for it.
211+
# Adds the "blueprint" command to the $SHORTCUT_DIR and configures the correct permissions for it.
212212
placeshortcut() {
213-
if [[ $SHORTCUT_PATH != "" ]]; then
213+
if [[ $SHORTCUT_DIR != "" ]]; then
214214
PRINT INFO "Placing Blueprint command shortcut.."
215215

216216
rm -f scripts/helpers/blueprint.bak
217217
cp "scripts/helpers/blueprint" "scripts/helpers/blueprint.bak"
218218
sed -i "s~BLUEPRINT_FOLDER_HERE~$FOLDER~g" "scripts/helpers/blueprint.bak"
219219

220-
rm -f "$SHORTCUT_PATH/blueprint"
221-
mv scripts/helpers/blueprint.bak "$SHORTCUT_PATH/blueprint"
220+
rm -f "$SHORTCUT_DIR/blueprint"
221+
mv scripts/helpers/blueprint.bak "$SHORTCUT_DIR/blueprint"
222222

223223
{
224224
chmod 755 \
225225
"$FOLDER/blueprint.sh" \
226-
"$SHORTCUT_PATH/blueprint"
226+
"$SHORTCUT_DIR/blueprint"
227227
} >> "$BLUEPRINT__DEBUG"
228228
else
229-
PRINT DEBUG "Shortcut not placed as \$SHORTCUT_PATH is empty"
229+
PRINT DEBUG "Shortcut not placed as \$SHORTCUT_DIR is empty"
230230
fi
231231
}
232232
if ! [ -x "$(command -v blueprint)" ]; then placeshortcut; fi

0 commit comments

Comments
 (0)