Switch to using #!/usr/bin/env bash
This fixes http.sh on nixos, macos and probably a few other systemsmerge-requests/2/head
parent
f0ccf5d8ef
commit
52c09d888e
6
http.sh
6
http.sh
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
trap ctrl_c INT
|
||||
|
||||
if [[ ! -f "config/master.sh" ]]; then
|
||||
|
@ -100,12 +100,12 @@ if [[ $1 == "init" ]]; then # will get replaced with proper parameter parsing in
|
|||
LauraIsCute
|
||||
|
||||
cat <<LauraIsCute > "${cfg[namespace]}/workers/example/worker.sh"
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
date
|
||||
LauraIsCute
|
||||
|
||||
cat <<LauraIsCute > "${cfg[namespace]}/${cfg[root]}/index.shs"
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
source templates/head.sh
|
||||
echo "<h1>Hello from HTTP.sh!</h1><br>To get started with your app, check out $(pwd)/${cfg[namespace]}/
|
||||
<ul><li>$(pwd)/${cfg[namespace]}/${cfg[root]} - your (public) files go here</li>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# account.sh - account and session mgmt
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# mail.sh - basic SMTP handler
|
||||
|
||||
# mailgen(from, to, subject, msg)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# mime.sh - determine what Content-Type should be passed on
|
||||
#
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# misc.sh - miscellaneous functions
|
||||
|
||||
# set_cookie(cookie_name, cookie_content)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
url="$(url_decode "$(url_decode "$(sed -E 's/\?/<2F><>Lun4_iS_CuTe<54>/;s/^(.*)<29><>Lun4_iS_CuTe<54>//;s/'"${cfg[proxy_param]}"'=//g' <<< "${r[url]}")")")"
|
||||
|
||||
if [[ $(grep -Poh "${cfg[proxy_url]}" <<< "$url") == '' ]]; then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# route.sh - basic router stub
|
||||
|
||||
# router(uri, path)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
source config/master.sh
|
||||
source src/mime.sh
|
||||
source src/misc.sh
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# template.sh - basic templating engine
|
||||
|
||||
# render(array, template_file)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# worker.sh - setup and control of workers
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
echo '<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
|
Loading…
Reference in New Issue