From 3033274674613428caa71a4d3a0445f089c790f2 Mon Sep 17 00:00:00 2001 From: sadan <117494111+sadan4@users.noreply.github.com> Date: Mon, 27 May 2024 22:09:59 -0400 Subject: [PATCH] 9 current 2024-05-27 22:09:57 24.11.20240524.bfb7a88 Unknown * --- common/pkgs.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/pkgs.nix b/common/pkgs.nix index 6fe5d3f..8d30c06 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -80,21 +80,21 @@ in (pkgs.writeShellScriptBin "paste" '' command -v xsel > /dev/null if [[ $? -eq 0 ]]; then - xsel -ob && return + xsel -ob && exit 0 fi command -v wslclip > /dev/null if [[ $? -eq 0 ]]; then - wslclip -g && return + wslclip -g && exit 0 fi '') (pkgs.writeShellScriptBin "copy" '' command -v xsel > /dev/null - if [[ $? -ne 0 ]]; then - xsel -ib $@ && return + if [[ $? -eq 0 ]]; then + xsel -ib $@ && exit 0 fi command -v wslclip > /dev/null - if [[ $? -ne 0 ]]; then - wslclip $@ && return + if [[ $? -eq 0 ]]; then + wslclip $@ && exit 0 fi '')