reve/_reve.sh
Yigid BALABAN f34494b5ea
numerous changes
+ fish & bash completions
+ -w/--where option
M moved util_readf to _reve.sh
M linter-detected warnings fixed
M less variable clutter
2024-08-25 00:50:57 +03:00

16 lines
354 B
Bash

#!/usr/bin/env bash
# reve desktop environment framework
# Yigid BALABAN <fyb@fybx.dev> 2024
util_readf () {
local filename=$1
if [[ -f "$filename" ]]; then
cat "$filename"
else
echo "[reve] [E] util_readf: File not found: $filename" >&2
return 1
fi
}