Skip to content

Commit

Permalink
conditional-run.sh fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Apr 10, 2024
1 parent 7924d6c commit f8baf2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pimp-my-shell/functions/conditional-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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
}

0 comments on commit f8baf2b

Please sign in to comment.