Skip to content

Commit

Permalink
don't delete ramdisk.tar.gz after extraction (palera1n#21)
Browse files Browse the repository at this point in the history
deleting it causes undesired local changes in the git repo.

also added ramdisk.tar to gitignore so it doesn't show up as
an untracked file, though this one is less of an issue.
  • Loading branch information
lunaynx authored Dec 14, 2022
1 parent 8aab02c commit 0efe1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Linux/gaster
work
sshramdisk
.irecovery
other/ramdisk.tar
2 changes: 1 addition & 1 deletion sshrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ if [ "$oscheck" = 'Darwin' ]; then
hdiutil resize -sectors min work/ramdisk.dmg
else
if [ -f other/ramdisk.tar.gz ]; then
gzip -d other/ramdisk.tar.gz
gzip -k -d other/ramdisk.tar.gz
fi

"$oscheck"/hfsplus work/ramdisk.dmg grow 300000000 > /dev/null
Expand Down

0 comments on commit 0efe1c9

Please sign in to comment.