Skip to content

Commit

Permalink
Change checkFileExists function to use -e for symlink support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared J committed Mar 2, 2022
1 parent 539a38b commit 429c65c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ function pinVcpus {
}

function checkFileExists {
if [ -f "$1" ]
# Check for valid Symlink or real file
if [ -e "$1" ]
then
return 0
else
Expand Down

0 comments on commit 429c65c

Please sign in to comment.