Skip to content

Commit

Permalink
Code & Features Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaneltitane committed Dec 13, 2023
1 parent 03589f9 commit e79d791
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frobulator
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# version //////////////////////////////////////////////////////////////////////

# version="10-31-2023"
# version="12-12-2023"

# variables ////////////////////////////////////////////////////////////////////

Expand All @@ -16,9 +16,9 @@ stamp=$(date +"%m-%d-%Y-%H-%M-%S")

if [ -z "${SHELL}" ]
then
shell=/bin/bash
SHELL=/bin/bash
else
shell="${SHELL}"
SHELL="${SHELL}"
fi

# provide terminal columns count
Expand Down Expand Up @@ -2759,7 +2759,7 @@ frobulator.silence () {

command="${@}"

"${shell}" -c "$(echo ${command})" >> "${sink}" 2>&1
"${SHELL}" -c "$(echo ${command})" >> "${sink}" 2>&1
}

# log //////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2790,7 +2790,7 @@ frobulator.log () {

script="${script##*/}"

"${shell}" -c "$(echo ${command})" >> "${log_directory}"/"${script}"-"${stamp}".log 2>&1
"${SHELL}" -c "$(echo ${command})" >> "${log_directory}"/"${script}"-"${stamp}".log 2>&1
}

# password /////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -3469,7 +3469,7 @@ frobulator.exit () {

frobulator.countdown 3 "Exiting" "[ ${instance} ]"

frobulator.kill "${shell}"
frobulator.kill "${SHELL}"
}

# result ///////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -3614,7 +3614,7 @@ frobulator.escalate () {

# restart as superuser

exec sudo "${shell}" "${self}" "${command}"
exec sudo "${SHELL}" "${self}" "${command}"
echo
fi
}
Expand Down

0 comments on commit e79d791

Please sign in to comment.