mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
14 lines
236 B
Bash
14 lines
236 B
Bash
content="$1"
|
|
filename="$2"
|
|
|
|
if [[ ! -n "$content" ]]; then
|
|
echo "Provide file content"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -n "$filename" ]]; then
|
|
echo "Provide a path to an output file"
|
|
exit 1
|
|
fi
|
|
|
|
base64 -d <<< "$content" > "$filename"
|