From f8baf2b33446987da1da20a96f24e1db65596ea8 Mon Sep 17 00:00:00 2001 From: Ariel Barreiro Date: Wed, 10 Apr 2024 11:40:19 -0300 Subject: [PATCH] conditional-run.sh fixes --- pimp-my-shell/functions/conditional-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pimp-my-shell/functions/conditional-run.sh b/pimp-my-shell/functions/conditional-run.sh index 7409f15..32502bb 100644 --- a/pimp-my-shell/functions/conditional-run.sh +++ b/pimp-my-shell/functions/conditional-run.sh @@ -22,8 +22,8 @@ cr_should_run() { local id=$1 local hash_filename=".cr.hash.$id" local hash_filepath="/tmp/${hash_filename}" - local stored_hash_filepath = "/mnt/ddev-global-cache/pimp-my-shell/${HOSTNAME}/cr/${hash_filename}" - [[ ! -f $stored_hash_filepath ]] || ! cmp -s "$stored_hash_filepath" $hash_filename + local stored_hash_filepath="/mnt/ddev-global-cache/pimp-my-shell/${HOSTNAME}/cr/${hash_filename}" + [[ ! -f $stored_hash_filepath ]] || ! cmp -s "$stored_hash_filepath" $hash_filepath } cr_success() { @@ -34,6 +34,6 @@ cr_success() { local id=$1 local hash_filename=".cr.hash.$id" local hash_filepath="/tmp/${hash_filename}" - local stored_hash_filepath = "/mnt/ddev-global-cache/pimp-my-shell/${HOSTNAME}/cr/${hash_filename}" + local stored_hash_filepath="/mnt/ddev-global-cache/pimp-my-shell/${HOSTNAME}/cr/${hash_filename}" cp $hash_filepath $stored_hash_filepath }