-eq: unary operator expected
Code:
value= [ -e /mnt/sda1/Windows_XP_Partition ] Quote:
|
what does value equal ?
edit: this worx for me: Code:
schneidz@xbmc:~/tmp$ cat fixit.ksh |
How do I find out what value = ?
When run in a console, there is no error message for Quote:
|
Quote:
Code:
echo value = \"$value\" |
Quote:
Quote:
|
^ so since the -eq operator expects one number and nothing ("") is not a number, the if statement exits with an error.
|
When I run this with sda1 mounted and unmounted, the FILE values are correct.
Yet there is no message that the file was not found. ?? Quote:
|
The -e fixed it. :-)
Quote:
Quote:
- Quote:
|
All times are GMT -5. The time now is 07:02 AM. |