From d2522d42a36a5fbd4e1d983e21e7a76c2129abfd Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 4 Dec 2024 16:46:57 +0100 Subject: [PATCH] Fix typos --- .../Software/docker/services/jellyfin/rtorrent.Dockerfile | 4 ++-- scripts/lib/restoration.fish | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Common/Software/docker/services/jellyfin/rtorrent.Dockerfile b/scripts/Common/Software/docker/services/jellyfin/rtorrent.Dockerfile index 3fbeeffa..13caf9b2 100644 --- a/scripts/Common/Software/docker/services/jellyfin/rtorrent.Dockerfile +++ b/scripts/Common/Software/docker/services/jellyfin/rtorrent.Dockerfile @@ -93,7 +93,7 @@ RUN printf "%s\n" \ " while true" \ " do" \ ' echo "Refreshing NAT-PMP port forwarding…"' \ - ' natpmp -a 0 0 udp "$NATPMP_TIMEOUT"' \ + ' natpmpc -a 0 0 udp "$NATPMP_TIMEOUT"' \ ' natpmpc -a 0 0 tcp "$NATPMP_TIMEOUT"' \ ' echo "NAT-PMP port forwarding has been refreshed!"' \ ' sleep "$NATPMP_INTERVAL"' \ @@ -101,7 +101,7 @@ RUN printf "%s\n" \ "} &" \ "set -m" \ '[ ${MAX_UPTIME:-0} -gt 0 ] && {' \ - ' soudo -iu '"${USERNAME}"' rtorrent -o network.port_range.set=$port-$port,system.daemon.set=true $@ &' \ + ' sudo -iu '"${USERNAME}"' rtorrent -o network.port_range.set=$port-$port,system.daemon.set=true $@ &' \ ' pid=$!' \ ' sleep "$MAX_UPTIME"' \ ' pkill -9 $pid' \ diff --git a/scripts/lib/restoration.fish b/scripts/lib/restoration.fish index b609f2f7..49ce3190 100644 --- a/scripts/lib/restoration.fish +++ b/scripts/lib/restoration.fish @@ -70,7 +70,7 @@ function getArchivePath argparse -i "u/user=" "n/name=" -- $argv set -l path "$VALHALLA_BACKUP_DIR" - if [ -b "$_flag_user" ] + if [ -n "$_flag_user" ] set -a path Users "$_flag_user" else set -a path System