Article 58ZC3 Need help with small custom btrfs command

Need help with small custom btrfs command

by
finalturismo
from LinuxQuestions.org on (#58ZC3)
So when i run this command in the current directory it works fine
But if i run the command outside the directory or in a bash script it says file not found. Anyone know whats going on?

Code:ls -t /mnt/btrfs/snapshots/ | tail -1 | xargs btrfs subvolume set-default && btrfs subvolume get-defaultlatest?d=yIl2AUoC8zA latest?i=V-88ulLCXhU:tpBH0iS7HbM:F7zBnMy latest?i=V-88ulLCXhU:tpBH0iS7HbM:V_sGLiP latest?d=qj6IDK7rITs latest?i=V-88ulLCXhU:tpBH0iS7HbM:gIN9vFwV-88ulLCXhU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments