Skip to content

Commit

Permalink
fixed folder detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cynixx3 committed Mar 10, 2019
1 parent b1da3de commit 7f373a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner-manager
Expand Up @@ -79,7 +79,7 @@ f.PREPMINER(){
mkdir "$MINER_BRANCH"
echo "WARNING: tarbomb detected. Opening in subdirectory, $MINER_BRANCH."
else
MINER_ARCHIVE_FOLDER=$(tar "$CT" -tf "$MINER_BRANCH.$COMPRESSION" | grep -oP '^.*\/' | grep -vE '(kernel|plugin)' | sort -u | tail -n1) || echo "failed to find archive folder"
MINER_ARCHIVE_FOLDER=$(tar "$CT" -tf "$MINER_BRANCH.$COMPRESSION" | grep -oP '^.*\/' | grep -vE '(kernel|plugin|log.)' | sort -u | tail -n1) || echo "failed to find archive folder"
fi
if ! tar "$CT" -xf "$MINER_BRANCH.$COMPRESSION" "$SUBDIR" ; then
echo "Unable to extract files package. Please check your access to git then try again."
Expand Down

0 comments on commit 7f373a4

Please sign in to comment.