mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Fix tabs vs spaces
This commit is contained in:
@@ -4,5 +4,5 @@ DROPBOX_ACCOUNTS="${DROPBOX_ACCOUNTS:-private work}"
|
||||
|
||||
for ACCOUNT in $DROPBOX_ACCOUNTS
|
||||
do
|
||||
HOME="${HOME}/.dropbox-${ACCOUNT}" dropbox start &
|
||||
HOME="${HOME}/.dropbox-${ACCOUNT}" dropbox start &
|
||||
done
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
function dropbox-install {
|
||||
export DROPBOX_archive="dropbox_daemon.tar.gz"
|
||||
export DROPBOX_retries="3"
|
||||
export DROPBOX_url="http://www.getdropbox.com/download?plat=lnx.x86_64"
|
||||
export DROPBOX_archive="dropbox_daemon.tar.gz"
|
||||
export DROPBOX_retries="3"
|
||||
export DROPBOX_url="http://www.getdropbox.com/download?plat=lnx.x86_64"
|
||||
|
||||
# download daemon
|
||||
echo " downloading archive…"
|
||||
curl -C - -o $DROPBOX_archive --retry $DROPBOX_retries -S -L $DROPBOX_url
|
||||
# download daemon
|
||||
echo " downloading archive…"
|
||||
curl -C - -o $DROPBOX_archive --retry $DROPBOX_retries -S -L $DROPBOX_url
|
||||
|
||||
# install daemon
|
||||
echo " unarchiving tarball…"
|
||||
tar zxf $DROPBOX_archive -C $HOME
|
||||
# install daemon
|
||||
echo " unarchiving tarball…"
|
||||
tar zxf $DROPBOX_archive -C $HOME
|
||||
|
||||
# cleaning
|
||||
rm $DROPBOX_archive
|
||||
# cleaning
|
||||
rm $DROPBOX_archive
|
||||
}
|
||||
|
||||
if [ ! -f start-multiple-instances.sh ]
|
||||
then
|
||||
echo "[ERROR] Dropbox multi-instances start script not usable. Aborting."
|
||||
exit 1
|
||||
echo "[ERROR] Dropbox multi-instances start script not usable. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ${HOME}/.dropbox-dist ]
|
||||
then
|
||||
echo "[WARNING] Default Dropbox dist directory not found."
|
||||
echo "[WARNING] Downloading and installing in the default directory."
|
||||
echo "[WARNING] Default Dropbox dist directory not found."
|
||||
echo "[WARNING] Downloading and installing in the default directory."
|
||||
else
|
||||
rm -r ${HOME}/.dropbox-dist
|
||||
rm -r ${HOME}/.dropbox-dist
|
||||
fi
|
||||
|
||||
echo "[NOTICE] Stopping all processes using the current version of Dropbox."
|
||||
|
||||
Reference in New Issue
Block a user