From ac7575f8dece5c694ab6dfbe3b6a2d4f95d9104e Mon Sep 17 00:00:00 2001 From: "Matt Micene (RHT)" Date: Tue, 10 Dec 2024 14:00:18 -0500 Subject: [PATCH] Diff .remote files from instruqt track pull and remove files with no changes --- track_diff.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 track_diff.sh diff --git a/track_diff.sh b/track_diff.sh new file mode 100755 index 00000000..1226982d --- /dev/null +++ b/track_diff.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +for i in $(find . -name "*.remote") +do + diff -Nau $i $(dirname $i)\/$(basename $i .remote) + if [ $? -eq 0 ] + then + echo $i same, removing + rm $i + fi +done