Search Results

Search: Posts Made By: bob21
1,757
Posted By Scrutinizer
Since elif is being used, the second condition...
Since elif is being used, the second condition does not get evaluated when condition 1 is true, and it always evaluates to false when condition 1 is false, so condition 2 never becomes true.....
1,641
Posted By methyl
The error message is coming from here: ...
The error message is coming from here:


Perhaps you meant:
if [ ! -d "$HOME/deleted" ] ; then
mkdir "$HOME/deleted"

Ps. You could have used your variable $TRASH for consistency.
Pps....
1,641
Posted By methyl
The syntax for all the function lines looks wrong...
The syntax for all the function lines looks wrong to me. It's a mixture of two alternative syntaxes.
1,641
Posted By vbe
Using metyl's suggestions: if ! [ -d...
Using metyl's suggestions:

if ! [ -d "$TRASH" ]
then
mkdir $TRASH

Then you have a errror around line 120:

function verbose () {
#if [ "$FLAG_V" = "v" ] ; then # Comment out both...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy