set+x replacement

This commit is contained in:
2022-05-19 19:33:18 +03:00
parent 9d035e20f4
commit 3adf7fb39a

4
bake
View File

@@ -1,5 +1,5 @@
#!/bin/bash
## VERSION 22.5.11
## VERSION 22.5.19
## BASH-MAKE ==========================================================
## Utility to mimick some of GNU Make behavior, but run in a single
## bash shell. This executable can be used as the Bakefile, too,
@@ -113,6 +113,8 @@ _update_self() {
"https://raw.githubusercontent.com/moonq/bake/main/bake"
chmod +x "$0"
}
@() { echo +"$@" >&2; "$@"; } # Print command before running it
for (( i=1; i<=$#; i++ )); do
if [[ $i -eq 1 ]]; then
if [[ "${!i}" = "__list__" ]]; then _flines | sed 's/().*//'; exit; fi