mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-24 21:23:22 +00:00
add deprecation notice to old archive helper bin
This commit is contained in:
parent
9fc6399034
commit
457556a2a8
1 changed files with 6 additions and 4 deletions
10
bin/archive
10
bin/archive
|
@ -1,11 +1,13 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
# DEPRECATED: this helper exists for backwards compatibility with <v0.4 only
|
||||||
|
# Do not use this to call archivebox, instead use the archivebox binary directly.
|
||||||
|
|
||||||
if python3 -m django --version >/dev/null 2>&1; then
|
if python3 -m django --version >/dev/null 2>&1; then
|
||||||
python3 -m archivebox "$*"
|
python3 -m archivebox "$*"
|
||||||
else
|
else
|
||||||
echo '[X] ArchiveBox must be installed before using:'
|
echo '[X] ArchiveBox not found, is it installed and present in your $PATH?'
|
||||||
echo " pip install archivebox"
|
echo ' pip3 install archivebox'
|
||||||
echo
|
echo
|
||||||
echo "Hint: Did you forget to activate a virtuenv or set your $$PATH?"
|
echo 'Hint: Did you forget to activate a virtualenv?'
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue