Skip to content

Commit

Permalink
insert checkFile
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberAndi committed Dec 14, 2023
1 parent 0714c41 commit 3c942b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions openWRT_install_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ echo 'Please wait for at least 10 minutes and then it will reboot ...'
echo
}

function checkFile () {
if [ -e $1 ] | [ $(ls $1 2>/dev/null) ]
then
true

else
false
fi
}

ask_parameter() {

release=$(cat /etc/openwrt_release | grep "DISTRIB_RELEASE" | cut -f2 -d '=')
Expand Down

0 comments on commit 3c942b7

Please sign in to comment.