Skip to content

Commit

Permalink
Update sr3_action_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland authored Dec 14, 2023
1 parent 05bbf4b commit 206eafa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/sr3_action_remove
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ fi

# Files must exist
for item in "${files_to_remove[@]}"; do
# shellcheck disable=SC2059
for file in ${item}; do
if [ ! -f "${file}" ]; then
echo "[ERROR] File does not exist: ${file}"
Expand All @@ -60,6 +61,7 @@ fi

# Remove the files and commit the change
for item in "${files_to_remove[@]}"; do
# shellcheck disable=SC2059
for file in ${item}; do
cp -p "${file}" "${file}.off"
done
Expand Down

0 comments on commit 206eafa

Please sign in to comment.