Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan committed Jan 4, 2024
1 parent 2392a2c commit fb915ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opt/cs50/bin/sqlite3
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# Formatting
bold=${bold}
normal=${normal}
bold=$(tput bold)
normal=$(tput sgr0)

# If data is coming from stdin (pipe or redirection)
if [[ -p /dev/stdin || ! -t 0 ]]; then
Expand Down
6 changes: 5 additions & 1 deletion opt/cs50/bin/valgrind
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash

# Formatting
bold=$(tput bold)
normal=$(tput sgr0)

# If run on Python program
if [[ "$1" == "python" || "$1" == *.py ]]; then
echo "Afraid valgrind does not support Python programs!"
echo "Afraid ${bold}valgrind${normal} does not support Python programs!"
exit 1
fi

Expand Down

0 comments on commit fb915ca

Please sign in to comment.