mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab-clean-usb.sh: $() instead of `` for command substitution
This commit is contained in:
parent
cd160da679
commit
425cbf494c
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Remove symlink in /library/content to automounted usb drive
|
||||
#
|
||||
DEVICE=`echo $@ | sed -s 's|-|/|'`
|
||||
MNT_POINT=`findmnt -n /$DEVICE | awk '{print $1}'`
|
||||
CONTENT_LINK_USB=`basename $MNT_POINT | awk '{print toupper($0)}'`
|
||||
DEVICE=$(echo $@ | sed -s 's|-|/|')
|
||||
MNT_POINT=$(findmnt -n /$DEVICE | awk '{print $1}')
|
||||
CONTENT_LINK_USB=$(basename $MNT_POINT | awk '{print toupper($0)}')
|
||||
CONTENT_LINK="/library/www/html/local_content/$CONTENT_LINK_USB"
|
||||
logger -p user.notice -t "usb_lib (iiab-clean-usb.sh)" -- "Attempting to remove link $CONTENT_LINK."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue