mirror of
https://github.com/opensiriusfox/bashrc.d.git
synced 2025-06-16 20:31:15 -07:00
Faster loading rework
- Fixed Batou Local Bits - fixed case insensitivyt bug - added oracle server bit - added the loader stub
This commit is contained in:
parent
04c6996897
commit
be1cbd69d4
4 changed files with 29 additions and 3 deletions
|
@ -30,8 +30,9 @@ echo """#!/bin/bash
|
|||
|
||||
""" > $COMPILED_SRC
|
||||
|
||||
|
||||
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/$(hostname).meta.sh"
|
||||
__HOSTNAME=$(hostname)
|
||||
__HOSTNAME=${__HOSTNAME,,} # make it lowercase
|
||||
HOST_SPECIFIC_META_SRC="$BASHRC_D/hostname/${__HOSTNAME}.meta.sh"
|
||||
if [[ -e $HOST_SPECIFIC_META_SRC ]]; then
|
||||
echo "Executing host specific config file $HOST_SPECIFIC_META_SRC"
|
||||
source "$HOST_SPECIFIC_META_SRC"
|
||||
|
@ -51,7 +52,7 @@ for F in $(find $BASHRC_D -maxdepth 1 -iname "*.sh"); do
|
|||
echo "" >> $COMPILED_SRC
|
||||
done
|
||||
|
||||
HOST_SPECIFIC_SRC="$BASHRC_D/hostname/$(hostname).sh"
|
||||
HOST_SPECIFIC_SRC="$BASHRC_D/hostname/${__HOSTNAME}.sh"
|
||||
if [[ -e $HOST_SPECIFIC_SRC ]]; then
|
||||
echo "Adding host specific file $HOST_SPECIFIC_SRC"
|
||||
echo "##################" >> $COMPILED_SRC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue