Skip to content
Snippets Groups Projects

fix: get filename from select with single value

Merged Hahn Axel (hahn) requested to merge 7000-corrections into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -569,7 +569,7 @@ EOH
# if there is a single dump in backup folder:
# '-rw-r--r-- 1 root root 481 Mar 13 12:27 ahcrawler__20240313-1227.sql.gz'
# --> take the last part behind the last space to get a filename
grep "[rwxsSt\-]{10,} " <<< "$LASTINPUT" \
grep "[rwxsSt\-]{10,} " <<< "$LASTINPUT" \
&& dbfile="$(rev <<< \'"$LASTINPUT"\' | cut -d ' ' -f 1 | rev)"
echo
Loading