Skip to content

Commit

Permalink
Update test_if_file_exists.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf authored Nov 23, 2023
1 parent 6a3967c commit d25178d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ch02/test_if_file_exists.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash

# Sets a variable containing the file name.
FILENAME="flow_control_with_if.txt"

# Test if a file exists, if not, create it.
if [[ -f "${FILENAME}" ]]; then
echo "${FILENAME} already exists."
exit 1
Expand Down

0 comments on commit d25178d

Please sign in to comment.