move fixperms to own script

This commit is contained in:
idk
2022-11-06 21:09:40 -05:00
parent 6e9df08473
commit 2db71e402d
2 changed files with 12 additions and 5 deletions
Executable
+6
View File
@@ -0,0 +1,6 @@
#! /usr/bin/env sh
find I2P -type d -exec chmod -v 755 {} \;
find I2P -type f -exec chmod -v +rw {} \;
find I2P -type d -exec chmod -v 755 {} \;
find I2P -type f -exec chmod -v +rw {} \;
+6 -5
View File
@@ -22,9 +22,10 @@ if [ -z $TODAYSDATE ]; then
TODAYSDATE=$(date -d '-1 day' '+%Y%m%d')
fi
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$TODAYSDATE"
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$TODAYSDATE"
if [ ! -f I2P.zip ]; then
echo github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$TODAYSDATE"
github-release download -u "$GITHUB_USERNAME" -r "i2p.firefox" -n "I2P.zip" -t "$TODAYSDATE"
fi
unzip I2P.zip
sleep 1
find I2P -type d -exec chmod 755 {} \;
find I2P -type f -exec chmod +rw {} \;
sleep 3
./fixperms.sh