diff options
Diffstat (limited to 'sys/nixpkgs/pkgs/scripts/source')
-rwxr-xr-x | sys/nixpkgs/pkgs/scripts/source/apps/fupdate.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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] | <some other command>] OPTIONS: --help | -h |