From 3796fe8f3f2f4708524961604345ce29a0baf6b2 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 29 Mar 2024 23:19:37 +0100 Subject: docs(pkgs/scripts/fupdate): Add somewhat better documentation --- sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/nixpkgs/pkgs') diff --git a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh index 2c1ca938..da89d16a 100755 --- a/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh +++ b/sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh @@ -75,10 +75,10 @@ update() { update_script="$1" flake_base_dir="$2" shift 2 - dbg "Provided following args to update script: '$*'" - dbg "changed directory to: $flake_base_dir" + cd "$flake_base_dir" || die "Provided dir \'$flake_base_dir\' can not be accessed" + dbg "changed directory to: $flake_base_dir" nix flake update @@ -97,7 +97,7 @@ help() { This is a Nix flake update manager. USAGE: - $NAME [--help] + $NAME [--help | --version] [flake [--no-script] | ] OPTIONS: --help | -h -- cgit 1.4.1