Compare commits
No commits in common. "fd59f9bf192897fdcc0a96b542519c0ccbd238d0" and "e1fdeff7180fcf16fe6d659df2ebe710900ccb64" have entirely different histories.
fd59f9bf19
...
e1fdeff718
15
index.n0m
15
index.n0m
@ -71,19 +71,14 @@ $ }
|
||||
# $1: string: restaurant to remove
|
||||
$ remove_restaurant () {
|
||||
$ enforce_arguments "${FUNCNAME[0]}" "$#" 1;
|
||||
$ local temp_file;
|
||||
$ temp_file=$(mktemp);
|
||||
$ grep -Fxv "$1" "$restaurant_file" > "$temp_file";
|
||||
$ mv "$temp_file" "$restaurant_file";
|
||||
$ grep -Fxv "$1" "$restaurant_file" | tee "$restaurant_file" >/dev/null;
|
||||
$ }
|
||||
#
|
||||
# $1: string: restuarant to add
|
||||
$ add_restaurant () {
|
||||
$ enforce_arguments "${FUNCNAME[0]}" "$#" 1;
|
||||
$ local temp_file;
|
||||
$ temp_file=$(mktemp);
|
||||
$ (grep -Fxv "$1" "$restaurant_file"; printf '%s\n' "$1") > "$temp_file";
|
||||
$ mv "$temp_file" "$restaurant_file";
|
||||
$ (grep -Fxv "$1" "$restaurant_file"; printf '%s\n' "$1") |\
|
||||
$ tee "$restaurant_file" >/dev/null;
|
||||
$ }
|
||||
#
|
||||
# $1 (optional): number: 0=don't overwrite, 1=overwrite
|
||||
@ -139,7 +134,6 @@ $ esac
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><% $title %></title>
|
||||
<style>
|
||||
:root {
|
||||
@ -166,7 +160,8 @@ $ esac
|
||||
|
||||
\#content {
|
||||
margin: 0 auto;
|
||||
width: calc(min(400px, 100vw - 1.5em));
|
||||
width: fit-content;
|
||||
min-width: 400px;
|
||||
}
|
||||
|
||||
\#todays-restaurant {
|
||||
|
Loading…
Reference in New Issue
Block a user