diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-06 18:12:33 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-06 18:17:34 +0200 |
| commit | 40b7b047a3fbf6451228de7f69c8ad5f156f7d1c (patch) | |
| tree | 365df06d7b7cb6122d8a30695aa45a12c4f58302 /lib/common.sh | |
| parent | workflows/ci: remove on: pull_request (diff) | |
| download | config-links-40b7b047a3fbf6451228de7f69c8ad5f156f7d1c.tar.gz config-links-40b7b047a3fbf6451228de7f69c8ad5f156f7d1c.zip | |
reorganize filesv2.1.0
Diffstat (limited to 'lib/common.sh')
| -rw-r--r-- | lib/common.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/common.sh b/lib/common.sh new file mode 100644 index 0000000..51c9827 --- /dev/null +++ b/lib/common.sh @@ -0,0 +1,22 @@ +# Copyright (c) 2016 Egor Tensin <egor@tensin.name> +# This file is part of the "Config file sharing" project. +# For details, see https://github.com/egor-tensin/config-links. +# Distributed under the MIT License. + +dump() { + local prefix="${FUNCNAME[0]}" + [ "${#FUNCNAME[@]}" -gt 1 ] && prefix="${FUNCNAME[1]}" + + local msg + for msg; do + echo "$prefix: $msg" + done +} + +set_dry_run() { + dry_run=1 +} + +is_dry_run() { + test -n "${dry_run+x}" +} |
