HOLY HSHIT CANI STOP
This commit is contained in:
parent
695ceac51e
commit
0c67fd746d
24
noter.sh
24
noter.sh
|
@ -13,21 +13,21 @@ if [ ! -d "notes" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
checksetting() {
|
checksetting() {
|
||||||
# Use this function to check for a setting without repetition
|
# Use this function to check for a setting without repetition
|
||||||
# Eg:
|
# Eg:
|
||||||
# checksetting "yourmom" "$isyourmom"
|
# checksetting "yourmom" "$isyourmom"
|
||||||
if [ "$2" = true ]; then
|
if [ "$2" = true ]; then
|
||||||
echo "$1" >>"$output_file"
|
echo "$1" >>"$output_file"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
givefavicon() {
|
givefavicon() {
|
||||||
local file_path="$1"
|
local file_path="$1"
|
||||||
|
|
||||||
if [ -f "$file_path" ]; then
|
if [ -f "$file_path" ]; then
|
||||||
local base64_data="$(base64 -w 0 "$file_path")"
|
local base64_data="$(base64 -w 0 "$file_path")"
|
||||||
echo "data:image/png;base64,$base64_data"
|
echo "data:image/png;base64,$base64_data"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
generate_note_html() {
|
generate_note_html() {
|
||||||
|
|
Loading…
Reference in New Issue