Quote:
Originally Posted by cfajohnson
What are you trying to move? You haven't checked whether there is a file (or directory) called conf in the current directory.
How do you know that /etc/dmi/conf doesn't exist? You didn't test for it; you tested for a directory of that name.
The same comments apply to the next section as well.
|
Do you mean test, like so:
Code:
test -d /etc/dmi/conf
if [ "$?" -eq 0 ]
then
print '/etc/dmi/conf does exist'
else
print '/etc/dmi/conf does NOT exist'
fi