Skip to content

Commit

Permalink
Scripts: mute find permission errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miklschmidt committed Jan 14, 2024
1 parent d1c0657 commit b8c26f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-shaper-graph-x.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
NEWX=$(find /tmp -name "resonances_x_*.csv" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" ")
NEWX=$(find /tmp -name "resonances_x_*.csv" -printf '%T@ %p\n' 2> /dev/null | sort -n | tail -1 | cut -f2- -d" ")
DATE=$(date +'%Y-%m-%d-%H%M%S')
if [ ! -d "$SCRIPT_DIR/../../input_shaper" ]
then
Expand Down
3 changes: 1 addition & 2 deletions scripts/generate-shaper-graph-y.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

NEWY=$(find /tmp -name "resonances_y_*.csv" -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" ")
NEWY=$(find /tmp -name "resonances_y_*.csv" -printf '%T@ %p\n' 2> /dev/null | sort -n | tail -1 | cut -f2- -d" ")
DATE=$(date +'%Y-%m-%d-%H%M%S')
if [ ! -d "$SCRIPT_DIR/../../input_shaper" ]
then
Expand Down

0 comments on commit b8c26f7

Please sign in to comment.