Closed milahu closed 5 years ago
Thanks!
Hi, So any update on this? i still get mv:failed error.
for debugging, add a -v
flag to mv
mv -v $TMP_BIN $OUT_DIR/$PROG \
|| sudo mv -v $TMP_BIN $OUT_DIR/$PROG \
|| fail "mv failed" #FINAL STEP!
when i run install.sh as user, then mv $TMP_BIN $OUT_DIR/$PROG fails with Permission denied with OUT_DIR="/usr/local/bin"
now, if mv fails, fall back to 'sudo mv'
to fix issue https://github.com/jpillora/cloud-torrent/issues/270