mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-08-12 02:38:38 +02:00
fix: unbound var
This commit is contained in:
@@ -13,14 +13,13 @@ outputs = { self, nixpkgs, flake-utils}:
|
|||||||
in {
|
in {
|
||||||
packages.default = pkgs.writeShellApplication {
|
packages.default = pkgs.writeShellApplication {
|
||||||
name = "ngcp";
|
name = "ngcp";
|
||||||
text = ./ngcp.sh;
|
text = builtins.readFile ./ngcp.sh;
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
git
|
git
|
||||||
libnotify
|
libnotify
|
||||||
jq
|
jq
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
mainProgram = "ngpcp";
|
|
||||||
apps.default = {
|
apps.default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${self.packages.${system}.default}/bin/ngcp";
|
program = "${self.packages.${system}.default}/bin/ngcp";
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
trap 'echo "Interrupted or failed. Repo may be mid-rebase/cherry-pick." ; exit 1' INT ERR
|
trap 'echo "Interrupted or failed. Repo may be mid-rebase/cherry-pick." ; exit 1' INT ERR
|
||||||
|
|
||||||
|
if [[ $# -eq 0 ]]; then
|
||||||
|
echo "Usage: ngcp [mode] [options]"
|
||||||
|
echo "Run 'ngcp --help' for more information."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# waits for an internet connection. It pings both Google DNS and Cloudfare dns in case one of them is down
|
# waits for an internet connection. It pings both Google DNS and Cloudfare dns in case one of them is down
|
||||||
pings=0
|
pings=0
|
||||||
|
|||||||
Reference in New Issue
Block a user