A .clone.sh => .clone.sh +36 -0
@@ 0,0 1,36 @@
+#!/usr/bin/env fish
+
+# See which commands are missing
+missing=
+
+# Test for fish
+if ! which fish > /dev/null; then
+ missing="$missing fish"
+fi
+
+# Test for git
+if ! which git > /dev/null; then
+ missing="$missing git"
+fi
+
+# Deal with missing commands
+if test -n "$missing"; then
+ if which apt > /dev/null; then
+ # apt is available, use it to install both
+ echo 'These commands are missing, but can probably be installed with apt:'
+ echo "$missing"
+ echo '`sudo apt` will be run now.'
+ echo
+ sudo apt update; or exit
+ sudo apt install -y $missing; or exit
+ else
+ echo 'These commands are missing:'
+ echo "$missing"
+ echo 'Please install them to continue.'
+ exit 1
+ fi
+fi
+
+git clone https://github.com/cloudrac3r/bibliogram-updater
+cd bibliogram-updater
+exec ./run.fish
M install.fish => install.fish +4 -0
@@ 33,6 33,10 @@ if not command -sq node
echo
end
+if test -e state/use_local_node
+ set -a PATH $PWD/$node_folder/bin
+end
+
if not test -e bibliogram
git clone https://github.com/cloudrac3r/bibliogram; or exit
mkdir -p bibliogram/db
M utils/constants.fish => utils/constants.fish +2 -4
@@ 1,9 1,7 @@
#!/usr/bin/env fish
-set arch
-switch (uname -i)
- case x86_64
- set arch x64
+set arch x64
+switch (uname -m)
case armv7l
set arch armv7l
end