From cbde0a47625ff8662ba39469690bbe3ed6247dd0 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Fri, 4 Mar 2022 16:12:41 +0100 Subject: [PATCH] Allow calling installdeps.sh from anywhere It's nice for the desktop installer contributors to be able to run "./path/to/subiquity/scripts/installdeps.sh" without changing dir. --- scripts/installdeps.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/installdeps.sh b/scripts/installdeps.sh index 2c2fba07..534ee7de 100755 --- a/scripts/installdeps.sh +++ b/scripts/installdeps.sh @@ -1,5 +1,7 @@ #!/bin/bash set -eux +cd "$(dirname ${BASH_SOURCE:0})/.." + apt-get update DEBIAN_FRONTEND=noninteractive apt-get -o APT::Get::Always-Include-Phased-Updates=true -y dist-upgrade mkdir -p /etc/systemd/system/zfs-mount.service.d/