Skip to content

Commit

Permalink
good practice
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Sep 8, 2024
1 parent 4ab9c31 commit 6f0bfe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion other/25/run
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ read FLAG < /flag
read DEST < <(tr -cd "[a-z0-9/]" <<< "$1")
[[ "$DEST" == /* ]] || exit 1

OLDIFS=$IFS
OLDIFS="$IFS"
IFS="/"
FILE=""
for FRAGMENT in $DEST
Expand All @@ -20,6 +20,7 @@ do

chmod 000 "$FILE"
done
IFS="$OLDIFS"

umask 777
touch "$DEST"
Expand Down

0 comments on commit 6f0bfe7

Please sign in to comment.