disabling external settings for now as it's still broken
This commit is contained in:
parent
7e8ba12964
commit
9b1ba843dc
1 changed files with 13 additions and 11 deletions
|
|
@ -53,14 +53,16 @@ scriptname="${0##*/}"
|
||||||
rundir="${0%/*}"
|
rundir="${0%/*}"
|
||||||
# If running on login as a bashrc, the above variables will not give this script's data
|
# If running on login as a bashrc, the above variables will not give this script's data
|
||||||
# Failover hardcoded settings location for now if running from login environment
|
# Failover hardcoded settings location for now if running from login environment
|
||||||
if ! [[ $scriptname =~ "-bash" ]] ; then
|
|
||||||
#rundir_absolute=$(cd $rundir && pwd)
|
### TODO: This implementation is still broken. context for location breaks during login
|
||||||
rundir_absolute=$(pushd $rundir && pwd && popd)
|
# if ! [[ $scriptname =~ "-bash" ]] ; then
|
||||||
settingsfile=$(echo "$rundir_absolute/$scriptname" | sed -E 's/(.*)bashrc/\1settings/')
|
# #rundir_absolute=$(cd $rundir && pwd)
|
||||||
else
|
# rundir_absolute=$(pushd $rundir && pwd && popd)
|
||||||
if ! [ -f "$HOME/.bashrc.d/11-quickinfo.settings"] ; then
|
# settingsfile=$(echo "$rundir_absolute/$scriptname" | sed -E 's/(.*)bashrc/\1settings/')
|
||||||
settingsfile="$HOME/.bashrc.d/11-quickinfo.settings"
|
# else
|
||||||
else
|
# if ! [ -f "$HOME/.bashrc.d/11-quickinfo.settings"] ; then
|
||||||
|
# settingsfile="$HOME/.bashrc.d/11-quickinfo.settings"
|
||||||
|
# else
|
||||||
# default quickinfo bashrc Preferences
|
# default quickinfo bashrc Preferences
|
||||||
|
|
||||||
# Disable run on non-interactive sessions (set true to disable)
|
# Disable run on non-interactive sessions (set true to disable)
|
||||||
|
|
@ -79,9 +81,9 @@ else
|
||||||
# separate disk types with '\|' ex. "sd\|nvme"
|
# separate disk types with '\|' ex. "sd\|nvme"
|
||||||
allowed_disk_prefixes="sd\|md\|mapper\|nvme\|mmcblk\|root"
|
allowed_disk_prefixes="sd\|md\|mapper\|nvme\|mmcblk\|root"
|
||||||
disallowed_disks="boot"
|
disallowed_disks="boot"
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
source $settingsfile
|
# source $settingsfile
|
||||||
|
|
||||||
# source PRbL functions
|
# source PRbL functions
|
||||||
if [ ! -z $prbl_functions ] ; then
|
if [ ! -z $prbl_functions ] ; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue