From b246a2174240638efe47991a790e4977cc20d21d Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 1 Aug 2024 03:21:36 -0700 Subject: [PATCH] remove unneeded escaping --- service.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service.nix b/service.nix index 9ee6914..bdef466 100644 --- a/service.nix +++ b/service.nix @@ -25,13 +25,13 @@ in repo=''${args[0]} target=''${args[1]} - if [ -d "''$target" ]; then - files=($target"/*") + if [ -d "$target" ]; then + files=("$($target)/*") - if [[ ''$(''$files[@]) -gt 0 ]]; then - echo "~ Found Files at ''$target ~" + if [[ $($files[@]) -gt 0 ]]; then + echo "~ Found Files at $target ~" else - echo "~ No Files in ''$target ~" + echo "~ No Files in $target ~" fi fi done < "${config.repo-clone.pkg}"