make local variables local
.. to not interfere with variables in the scripts that source these utils.
This commit is contained in:
@@ -13,13 +13,13 @@ loggerseparator () {
|
||||
}
|
||||
|
||||
saferun () {
|
||||
allcommands=""
|
||||
local allcommands=""
|
||||
for var in "$@"; do
|
||||
allcommands="$allcommands$var /// "
|
||||
done
|
||||
logger "Enter to run the following command(s): $allcommands"
|
||||
read ok
|
||||
ret=0
|
||||
local ret=0
|
||||
for var in "$@"; do
|
||||
if [[ $ret -eq 0 ]]; then
|
||||
$var
|
||||
|
||||
Reference in New Issue
Block a user