Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ yarn-error.log*

example/smart-contracts/lib/
example/smart-contracts/out/
example/smart-contracts/cache/
example/smart-contracts/cache/

# Extension downloads and extractions
e2e/extensions/
2 changes: 1 addition & 1 deletion src/cli/prepare-coinbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ print_info "Target directory: $TARGET_DIR"

# Security check: Prevent dangerous directory operations
# Fixed: Use $HOME instead of "~" for proper home directory comparison
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "~" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
print_error "Invalid or dangerous target directory: $TARGET_DIR"
print_error "Please specify a safe target directory for Coinbase Wallet extension"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/cli/prepare-metamask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ print_info "Target directory: $TARGET_DIR"

# Security check: Prevent dangerous directory operations
# Fixed: Use $HOME instead of "~" for proper home directory comparison
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "~" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
print_error "Invalid or dangerous target directory: $TARGET_DIR"
print_error "Please specify a safe target directory for MetaMask extension"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion src/cli/prepare-phantom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ print_info "Target directory: $TARGET_DIR"

# Security check: Prevent dangerous directory operations
# Fixed: Use $HOME instead of "~" for proper home directory comparison
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
if [[ -z "$TARGET_DIR" || "$TARGET_DIR" == "/" || "$TARGET_DIR" == "~" || "$TARGET_DIR" == "$HOME" || "$TARGET_DIR" == "." || "$TARGET_DIR" == ".." ]]; then
print_error "Invalid or dangerous target directory: $TARGET_DIR"
print_error "Please specify a safe target directory for Phantom Wallet extension"
exit 1
Expand Down