Skip to content

Commit

Permalink
Add dollar signs for shell subcommands
Browse files Browse the repository at this point in the history
This is allowed in the fish shell now.
  • Loading branch information
jwillikers committed Jan 28, 2024
1 parent 307cf9a commit 0db7b1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Enter any existing passphrase:
--
[,sh]
----
echo "backup_crypt UUID="(sudo blkid -o value -s UUID /dev/sdb1)" /etc/cryptsetup-keys.d/backup_crypt.key luks,noauto,nofail,discard" \
echo "backup_crypt UUID="$(sudo blkid -o value -s UUID /dev/sdb1)" /etc/cryptsetup-keys.d/backup_crypt.key luks,noauto,nofail,discard" \
| sudo tee -a /etc/crypttab
backup_crypt UUID=0cbab673-2b14-40c0-a1f2-522bc7ff7e18 /etc/cryptsetup-keys.d/backup_crypt.key luks,noauto,nofail,discard
----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Some scripting in the command below determines the UUID of the Btrfs filesystem
[,sh]
----
sudo snap-sync -c root \
--UUID (sudo blkid -o value -s UUID /dev/mapper/backup_crypt) \
--subvolid (sudo btrfs subvolume show /run/media/system/System_Backups \
--UUID $(sudo blkid -o value -s UUID /dev/mapper/backup_crypt) \
--subvolid $(sudo btrfs subvolume show /run/media/system/System_Backups \
| awk -F ":[ \t]*" '/Subvolume ID:/ {gsub(//,""); print $2}')
snap-sync version 0.7, Copyright (C) 2016-2021 Wes Barnett
Expand Down

0 comments on commit 0db7b1b

Please sign in to comment.