Remove duplicated code
This commit is contained in:
parent
f44d0a4a73
commit
7cf715f4d8
1 changed files with 0 additions and 9 deletions
|
@ -31,7 +31,6 @@ begin
|
|||
set -l port
|
||||
set -l file (mktemp)
|
||||
set -l root (getServiceRoot $argv)
|
||||
set -l bin /usr/local/bin/forgejo
|
||||
set -l config "$root/docker-compose.base.yml"
|
||||
set -l overrides (getServiceOverrides $argv)
|
||||
set -l envKey "$(getServiceKey "$service").environment"
|
||||
|
@ -72,14 +71,6 @@ begin
|
|||
end
|
||||
|
||||
rm "$file"
|
||||
|
||||
begin
|
||||
printf "%s\n" \
|
||||
"#!/bin/sh" \
|
||||
"ssh -p $port -o StrictHostKeyChecking=no git@127.0.0.1 \"SSH_ORIGINAL_COMMAND=\\\"$SSH_ORIGINAL_COMMAND\\\" \$0 \$@\""
|
||||
end | sudo tee "$bin" >/dev/null
|
||||
|
||||
chmod +x "$bin"
|
||||
end
|
||||
|
||||
function getServiceServers -V server
|
||||
|
|
Loading…
Reference in a new issue