mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-02-21 03:50:40 +00:00
15 lines
255 B
Bash
15 lines
255 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
|
||
|
|
||
|
echo -n "$content" | base64 --decode --output "$filename"
|