Skip to content

Commit

Permalink
fix use if error of the kvmd-msd.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
shangbinbin authored and shangbinbin committed Dec 3, 2023
1 parent d4419d3 commit 51b0c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/kvmd-msd/kvmd-msd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ case ${CMD} in
do
#echo ${name##*/}
echo $mount_dist_dir${name##*/}
if [ -f $mount_dist_dir${name##*/} || -d $mount_dist_dir${name##*/} ]
if [ -f $mount_dist_dir${name##*/} ] || [ -d $mount_dist_dir${name##*/} ]
then
continue
fi
Expand Down Expand Up @@ -337,7 +337,7 @@ case ${CMD} in
do
#echo ${name##*/}
echo $mount_dist_dir${name##*/}
if [ -f $mount_dist_dir${name##*/} || -d $mount_dist_dir${name##*/} ]
if [ -f $mount_dist_dir${name##*/} ] || [ -d $mount_dist_dir${name##*/} ]
then
echo "exist update file: ${name},rm it "
rm -rf $mount_dist_dir${name##*/}
Expand Down

0 comments on commit 51b0c69

Please sign in to comment.