Skip to content

Commit 1b9d925

Browse files
committed
Some minor tweaks done!
1 parent 7f56c55 commit 1b9d925

File tree

1 file changed

+2
-2
lines changed
  • Extra Scripts/DevOps-Sem3- Lab Scripts/2.2 Automation Scripts/2.2.1 Automation Scripts that save Time and Effort

1 file changed

+2
-2
lines changed

Extra Scripts/DevOps-Sem3- Lab Scripts/2.2 Automation Scripts/2.2.1 Automation Scripts that save Time and Effort/labA6.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
for user in $(getent passwd | cut -d : -f 6 | grep '/home' | sed 's:$:/.bashrc:'); do
1212
cat $user | grep -q 'validate_commands'
1313
if [[ $? != 0 ]]; then
14-
echo '
14+
1515
function validate_commands {
1616
cat /opt/forbidden_commands.txt | while read command; do
1717
if [ "$BASH_COMMAND" == "$command" ]; then
@@ -20,7 +20,7 @@ function validate_commands {
2020
fi
2121
done
2222
}
23-
trap validate_commands DEBUG' >> $user
23+
trap validate_commands DEBUG >> $user
2424
fi
2525
done
2626

0 commit comments

Comments
 (0)