disabling external settings for now as it's still broken

This commit is contained in:
pyr0ball 2023-03-23 23:27:10 -07:00
parent 7e8ba12964
commit 9b1ba843dc

View file

@ -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