fixed if statements
This commit is contained in:
parent
ea57dd90b6
commit
8e45e1915f
1 changed files with 6 additions and 6 deletions
|
@ -14,15 +14,15 @@ read -p "Series? " $so
|
|||
read -p "Episode? " $eo
|
||||
|
||||
for file in "$src/*"; do
|
||||
if [ $so != "" ];then
|
||||
s=$so
|
||||
else
|
||||
if [[ -z $so ]];then
|
||||
s=`echo "$file" | grep -o -P "$sscheme"`
|
||||
fi
|
||||
if [ $eo != "" ];then
|
||||
e=$eo
|
||||
else
|
||||
s=$so
|
||||
fi
|
||||
if [[ -z $eo ]];then
|
||||
e=`echo "$file" | grep -o -P "$escheme"`
|
||||
else
|
||||
e=$eo
|
||||
fi
|
||||
ext="${file##*.}"
|
||||
echo 'ln "$src/$file" "$dest/$name.S$s.E$e.$ext"'
|
||||
|
|
Loading…
Add table
Reference in a new issue