Skip to content

Commit

Permalink
fix $HOME error
Browse files Browse the repository at this point in the history
  • Loading branch information
cxyzzz committed May 6, 2020
1 parent 2b8762c commit bfa3859
Showing 1 changed file with 25 additions and 36 deletions.
61 changes: 25 additions & 36 deletions binary/rclone-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ elif [ -e ${IMGDIR}/${id}/rclone ]; then

else

HOME=${MODDIR}/${id}
HOME=${MODDIR}

fi

Expand Down Expand Up @@ -194,38 +194,27 @@ remount () {

}

if [[ ${1} = disable ]]; then

disable

elif [[ ${1} = remount ]]; then

remount

elif [[ ${1} = unmount ]]; then

sd_unbind
unmount


elif [[ ${1} = config ]]; then

config

elif [[ ${1} = help ]]; then

help

elif [[ ${1} = --help ]]; then

help

elif [[ -z ${1} ]]; then

help

else

${HOME}/rclone $*

fi
case ${1} in
disable)
disable
;;
mount)
${HOME}/service.sh
;;
remount)
remount
;;
unmount)
sd_unbind
unmount
;;
config)
config
;;
help | --help | -h)
help
;;
*)
${HOME}/rclone $*
;;
esac

0 comments on commit bfa3859

Please sign in to comment.