fix install script and release ci

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-02-21 12:04:51 -08:00
parent 7eb832b35b
commit 7119e9b8e3
2 changed files with 4 additions and 2 deletions

View file

@ -40,6 +40,7 @@ prepare-release:
--xform='s,target/release/,,' \
--xform='s,snippets/,,' \
--xform='s,snippets/release/,,' \
--xform='s,release/,,' \
target/release/flesh \
Readme.org Writing.org Shell.org \
snippets/flesh-mode.el \

View file

@ -1,6 +1,6 @@
#!/bin/sh
if [ ! "$USER" == "root" ]; then
if [ "$USER" != "root" ]; then
echo you will likely need root to place in /bin.
echo comment out this test to continue without it
exit
@ -25,8 +25,9 @@ fi
mv userlib.f $libdir
mv genbind.f $libdir
mv interactive-devel.f $libdir
mv default_fleshrc.f /home/$USER/.fleshrc
mv default_fleshrc.f /home/$SUDO_USER/.fleshrc
chown -R $SUDO_USER:$SUDO_USER $libdir
chown $SUDO_USER:$SUDO_USER /home/$SUDO_USER/.fleshrc
mv flesh /bin/flesh
chmod +x /bin/flesh